Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^7: Regex problems using '|'

by moritz (Cardinal)
on Jul 22, 2008 at 13:06 UTC ( [id://699300]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    m/(?s:.*)Remediation Report\n\n(.+?)\n|^(.+?)\n/;
    
  2. or download this
    while ($str =~ m/($regex)/){
        print $1, "\n";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2024-04-26 00:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found