Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

look-behind regex

by zejames (Hermit)
on Jul 24, 2002 at 05:27 UTC ( [id://184706]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (<DATA>) {
      s/foo/bar/ if ($_ !~ /toto.*?foo/);
    ...
    __DATA__
    toto 4dsf4qsd foo
    mama 432fz foo
    
  2. or download this
    toto 4dsf4qsd foo
    mamaf 432fz bar
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://184706]
Approved by grep
Front-paged by hsmyers
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-20 03:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found