Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Lookahead assertion

by BrowserUk (Pope)
on Oct 17, 2013 at 03:53 UTC ( #1058593=note: print w/replies, xml ) Need Help??


in reply to Lookahead assertion

Read as: "lookahead (and capture) 3 digits; then step forward 1 anything".

$s = '1234567890';; print $1 while $s =~ m[(?=(\d{3})).]g;; 123 234 345 456 567 678 789 890

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1058593]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2017-11-20 03:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (283 votes). Check out past polls.

    Notices?