Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: trouble regexing the next line

by moritz (Cardinal)
on Jul 28, 2012 at 14:30 UTC ( #984205=note: print w/replies, xml ) Need Help??

in reply to trouble regexing the next line

Since you read line by line, each line you match against can never match a multi-line regex. One possible solution is to read the whole thing into a single string first.

Re^2: trouble regexing the next line
by diamondsandperls (Beadle) on Jul 28, 2012 at 15:02 UTC
    Thanks man yeah reading the entire file in is what i needed thanks for the insight

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://984205]
[shmem]: Re^5: Understanding endianness of a number - nice! "zigamorph" will be the host name of the VM I'll set up to debug Microfocus COBOL/perl stuff :-D

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (11)
As of 2017-07-24 10:19 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (350 votes). Check out past polls.