@Test public void convertPerlRegexToPattern_simpleRegex() { final String perlStyleRegex = "/\\s*[a-zA-Z0-9]*/"; final Pattern pattern = RegularExpressionConverter.convertPerlRegexToPattern(perlStyleRegex); final Pattern expected = Pattern.compile("\\s*[a-zA-Z0-9]*"); assertThat(pattern.flags()).isEqualTo(expected.flags()); }
public static Pattern convertPerlRegexToPattern(@Nonnull final String regex) { return convertPerlRegexToPattern(regex, false); }
RegularExpressionConverter { public static Pattern convertPerlRegexToPattern(@Nonnull final String regex) { return convertPerlRegexToPattern(regex, false); } }
RegularExpressionConverter { public static Pattern convertPerlRegexToPattern(@Nonnull final String regex) { return convertPerlRegexToPattern(regex, false); } private  RegularExpressionConverter(); }
RegularExpressionConverter { public static Pattern convertPerlRegexToPattern(@Nonnull final String regex) { return convertPerlRegexToPattern(regex, false); } private  RegularExpressionConverter(); static String convertPatternToPerlRegex(@Nonnull final Pattern pattern); static Pattern convertPerlRegexToPattern(@Nonnull final String regex); static Pattern convertPerlRegexToPattern(@Nonnull final String regex, @Nonnull final boolean faultTolerant); }
RegularExpressionConverter { public static Pattern convertPerlRegexToPattern(@Nonnull final String regex) { return convertPerlRegexToPattern(regex, false); } private  RegularExpressionConverter(); static String convertPatternToPerlRegex(@Nonnull final Pattern pattern); static Pattern convertPerlRegexToPattern(@Nonnull final String regex); static Pattern convertPerlRegexToPattern(@Nonnull final String regex, @Nonnull final boolean faultTolerant);  }