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

Re^2: non-greedy piecewise matching

by mifflin (Curate)
on Aug 02, 2007 at 17:24 UTC ( #630346=note: print w/replies, xml ) Need Help??


in reply to Re: non-greedy piecewise matching
in thread non-greedy piecewise matching

thanks, that worked...
> cat x my $data = 'jlasflsf.xmljlasjlkjlasjflsdf.xmlklajlajlsdfjkl.xml'; while (pos $data < length $data) { if ( $data =~ m{ \G ( .+? \. xml) }gcxms ) { print "$1\n"; } } > perl x jlasflsf.xml jlasjlkjlasjflsdf.xml klajlajlsdfjkl.xml

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://630346]
help
Chatterbox?
and a kettle whistles...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2016-12-04 04:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (61 votes). Check out past polls.