Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 romping around the Monastery: (3)
As of 2024-07-19 18:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.