Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: read multiple lines

by Punitha (Priest)
on Nov 13, 2008 at 09:51 UTC ( #723392=note: print w/replies, xml ) Need Help??


in reply to read multiple lines

Hi

If you want the content in between 'begin' and 'end process' means try like this,

use strict; my $string ='hfkjd process jhk start begin output1 output2 end process scrap hkl process khfk shoot hooter begin output3 end process'; while($string=~/\bbegin((?:(?!end process).)*)end process/sg){ print "IN:$1\n"; }

or tell us clearly what you really need and what you tried so far?

Punitha

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://723392]
help
Chatterbox?
[haukex]: Discipulus: which one do you mean?

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2018-06-22 08:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (122 votes). Check out past polls.

    Notices?