Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 having an uproarious good time at the Monastery: (3)
As of 2025-04-24 21:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.