Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Regular Expression Search

by trizen (Hermit)
on Feb 10, 2012 at 08:57 UTC ( [id://952954]=note: print w/replies, xml ) Need Help??


in reply to Regular Expression Search

while (<DATA>) { print; while (/-+/g) { printf "Found at %s\n", $-[0]+1 . ($+[0] != $-[0]+1 ? " to $+[ +0]" : ''); } } __DATA__ A-----B A----C---B A--B---C----D-E A-B--C---D----E ---------------

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-26 01:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found