Don't ask to ask, just ask | |
PerlMonks |
Re: Re: Re: Re: Re: look-behind regexby I0 (Priest) |
on Jul 25, 2002 at 22:35 UTC ( [id://185372]=note: print w/replies, xml ) | Need Help?? |
In this case, it's easy enough to ensure that $1 is not false.
Even if zejames had wanted 'foo' not preceeded by '0' you could substitute
s/(0.*foo)|foo/($1,'bar')[!$1]/es
In Section
Seekers of Perl Wisdom
|
|