Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^8: This regexp made simpler

by rubasov (Friar)
on Apr 26, 2010 at 14:31 UTC ( #836922=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (<DATA>) {
      print;
    ...
    START ENDEND
    STARTSTARTENDEND
    STARTSTART ENDEND
    
  2. or download this
      s[ ^ (START) ( | \s (?:(?!END).)* ) (END) $ ]
       [ $1 . $2 . 'insert' . $3 ]ex;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2014-12-17 22:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (40 votes), past polls