You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oro-user@jakarta.apache.org by "Daniel F. Savarese" <df...@savarese.org> on 2002/06/05 14:11:50 UTC

Re: subexpressions in substitution

In message <46...@webmail.xs4all.nl>, jdijkmei
@xs4all.nl writes:
>DEBUG main rulez.ParseUtilsubstituting: s/\*([^*]*)width([^*])*\*/$140$2/gsx
>
>the $1 gets mingled with the digits of the substition value.

You can escape the parts that aren't part of the saved group index.  You
should be able to do this with Perl5Compiler.quotemeta().

daniel





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>