summaryrefslogblamecommitdiffstats
path: root/parsers/NullIt.java
blob: 29fdf0059e7f97fbd5c7a42c08ed7f09e2db5231 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                       
package scruf.parsers;

import java.util.regex.*;

public class NullIt {
    public String nullIt(String content,String regex) {
	Pattern pattern = Pattern.compile(regex);
	Matcher matcher = pattern.matcher(content);
	while(matcher.find()) {
	    content = matcher.replaceFirst("");
	    break;
	}
	return content;
    }
}