Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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.


Comment on Re: trouble regexing the next line
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (17)
As of 2015-07-29 12:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls