Users,
I'm having a few problems getting my regex to properly match my input. Here's the input string: [confectioner]\222s I want to match and then replace the \222 with Þ Here's the match string that I'm using (in my java) \\\\[0-9 <file:///\\\%5b0-9> ]+ Now, if I use the same (unescaped) string (\\[0-9 <file:///\\%5b0-9> ]+) on your demo applet, it will properly match \222. It doesn't match any input when placed in the code... Here's the snippet that I'm using Perl5Compiler rC = new Perl5Compiler(); Pattern p = rC.compile("\\\\[0-9]+"); PatternMatcher pm = new Perl5Matcher(); MatchResult res = null; if(pm.contains(in, p)){ res = pm.getMatch(); if( cat.isDebugEnabled()){ cat.debug(res.toString()); } } I've also tried it with the Perl5Util class... Thanks in advance.... Steven Fines