At 04:40 PM 7/30/2001 +0100, David Wood wrote: >What I need to do is something like:- > >$str =~ s/<udb:[^>]+\n(.*?)<\/udb:$1>/$sub->($1,$2)/gs; > >But putting the $1 on the LHS is not valid... In the regex itself, use \1, \2, etc instead of $1, $2, etc (which would match their values, if any, from the previous regex). Peter Scott [EMAIL PROTECTED] http://www.perldebugged.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
- Matching within the LHS of a regex... David Wood
- Re: Matching within the LHS of a regex.... Peter Scott
- Re: Matching within the LHS of a regex.... Jeff 'japhy/Marillion' Pinyan