Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Regex style and efficiency

by JavaFan (Canon)
on Jan 11, 2010 at 10:02 UTC ( [id://816696]=note: print w/replies, xml ) Need Help??


in reply to Regex style and efficiency

Here's one that doesn't use .*:
$s =~ /anchor/p and $s = ${^MATCH} . ${^POSTMATCH};

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-03-28 14:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found