Hello oro-users, I have a problem with substituting a match by itself. In perl i can use $& which stands for the whole match, but it seems oro doesn't understand this:
String patt="\\d+"; String sub="$&$&"; String input="12 345"; System.out.println( Util.substitute(new Perl5Matcher(), new Perl5Compiler().compile(patt), new Perl5Substitution(sub,Perl5Substitution.INTERPOLATE_ALL), input, Util.SUBSTITUTE_ALL) ); The output is "&& &&" while expected was "1212 345345". So my questions are: 1.How can I obtain "1212 345345" from "12 345" without changing a pattern? 2.Why oro doesn't support "$&" expression while it's standard in perl? -- Best regards, Сергей mailto:[EMAIL PROTECTED] P.S. Using 0 instead of & doesn't help too, though with non-zero groups substitution works fine. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>