Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: Re: multi-line regex match quest

by kelan (Deacon)
on Sep 29, 2002 at 15:15 UTC ( [id://201554]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ret = $1 if $g =~ /\n\s*\n((?m:^#.*\n)+)$id/;
    
  2. or download this
    /\n\s*\n        # This matches your blank line between comments.
     (              # Capture into $1.
    ...
     )              # End of $1 capture.
     $id            # This is the key you're looking for.
    /x
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-23 07:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found