Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

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


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

None of this matches with a /td at the end because none of the test results have a /td. Otherwise they all test true.
#!/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 Just Another Perl Hacker </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://541442]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found