net.sf.aguacate.regex.spi.pattern.RegexFactoryPattern Maven / Gradle / Ivy
package net.sf.aguacate.regex.spi.pattern;
import java.util.regex.Pattern;
import net.sf.aguacate.regex.Regex;
import net.sf.aguacate.regex.spi.RegexFactory;
public class RegexFactoryPattern implements RegexFactory {
@Override
public Regex build(String regex) {
return new RegexPattern(Pattern.compile(regex));
}
}