Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Regex problems using '|'

by Anonymous Monk
on Jul 22, 2008 at 09:24 UTC ( #699242=note: print w/replies, xml ) Need Help??

in reply to Regex problems using '|'

my $foo = $1 if m/^(.+?)\n/; $foo =~ s/Remediation Report(?:\n+)?//;

Replies are listed 'Best First'.
Re^2: Regex problems using '|'
by romandas (Pilgrim) on Jul 22, 2008 at 09:32 UTC
    Thank you for your submission. I'm not sure it does what I'm looking for, however. The first record's information is buried further down, so the initial pattern won't capture the information I'm looking for. It's why there is a ^ at the beginning of the second portion of the pattern, whereas the first portion does not contain it. Effectively "Remediation Report\n\n" is the equivalent of ^, as it is the starting point for the subsequent match.

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2023-11-30 17:33 GMT
Find Nodes?
    Voting Booth?

    No recent polls found