Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Help constructing a regex that also matches hyphens and parentheses

by zer (Deacon)
on Apr 05, 2006 at 17:26 UTC ( [id://541450]=note: print w/replies, xml ) Need Help??


in reply to Help constructing a regex that also matches hyphens and parentheses

This is a quick little hack on the matter. Ill look at it more later
#!/usr/bin/perl while (<DATA>){ print if(m#\s+([\w\-]+\s*)+</td>#g); } __DATA__ This is a test This is a (test) This is a (test123) this is a (123) This-is a test This-is-a test </td>
  • Comment on Re: Help constructing a regex that also matches hyphens and parentheses
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-16 06:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found