/super-csv/src/main/java/org/supercsv/cellprocessor/constraint/StrRegEx.java
private final char regex;
private final String regex;
import org.supercsv.cellprocessor.CellProcessorAdaptor; import org.supercsv.cellprocessor.ift.StringCellProcessor; import org.supercsv.exception.SuperCsvCellProcessorException; import org.supercsv.exception.SuperCsvConstraintViolationException; import org.supercsv.util.CsvContext; public class StrRegEx extends CellProcessorAdaptor implements StringCellProcessor { <extra_id_0> private final Pattern regexPattern; private static final Map<String, String> REGEX_MSGS = new HashMap<String, String>(); public StrRegEx(final String regex) { super(); checkPreconditions(regex); this.regexPattern = Pattern.compile(regex);