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

Re: Complex regex with negated group

by repellent (Priest)
on Mar 27, 2011 at 08:54 UTC ( [id://895737]=note: print w/replies, xml ) Need Help??


in reply to Complex regex with negated group

my $line = ""; while (local $_ = <DATA>) { print and next if $. <= 3; chomp; ($line = $_) =~ s/\S.*// if $line eq ""; # keep indent s/^\s*//; $line .= $_ . " "; if (m{/\d+:\d+ \W* $}x) { print "$line\n"; $line = ""; } }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-16 18:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found