jakarta-oro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Dantes <bldan...@comcast.net>
Subject Perl5Util.subsitute() and ${X} symbolic references in the substitution pattern
Date Fri, 04 Dec 2009 08:01:39 GMT
In an actual Perl program, I can write a regex substitution like:

$x =~ s/abc(def)ghi(jkl)/${1}123${2}/;

This doesn't work with ORO. Instead I have to:

util.substitute("s/abc(def)ghi(jkl)/$1\\123$2/");

I am using ORO to read in legacy Perl regexes from an external source, so
getting it to work with the symbolic references would be best.

Is there a way?

-BD



---------------------------------------------------------------------
To unsubscribe, e-mail: oro-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: oro-user-help@jakarta.apache.org


Mime
View raw message