ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject obtaining interpolations?
Date Wed, 27 Sep 2000 23:06:02 GMT
I have a bunch of Perl I have to convert to Java (don't ask). The Perl
code has regular expressions which rely a lot on obtaining the results
of parenthectical matching of interpolations. The ORO examples show the
use of interpolations only in substitutions. I need to obtain a String
containing the results of $1, $2, etc.

Here is an example of the Perl code I'm talking about:

  $inString =~ /\-{10}\s*(.*)\s*\-{10}/s;
  my $trans = $1;

Can you do this with the ORO libs? If so, how?



N. Bauman
Lead YoYo

View raw message