Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Re: Re: Re: look-behind regex

by I0 (Priest)
on Jul 25, 2002 at 22:35 UTC ( #185372=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: Re: look-behind regex
in thread look-behind regex

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


Comment on Re: Re: Re: Re: Re: look-behind regex
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://185372]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (19)
As of 2015-07-31 20:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (281 votes), past polls