A very simple java api to handle a few common regex patterns. Simply create a regex pattern object and use it to match against a String
PatternFactory pf = new PatternFactory();
RegexPattern rp = pf.getPattern(PatternType.ENUM);
rp.match(your_string);
PatternFactory pf = new PatternFactory();
RegexPattern rp = pf.getPattern("valid_regex_pattern");
rp.match(your_string);
- match() - returns a List of all matches found
- matchFound() - returns True if at least 1 match was found
- countMatches() - returns a count of all matches found