Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by kutsu (Priest)
on Apr 05, 2006 at 17:14 UTC ( #541446=note: print w/replies, xml ) Need Help??


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

Check out the section on "character classes" in perlre (their marked with braces, [ ]), as these will allow you to match hyphens and numbers as well. Also you could do that push(...) while ... as @found_items = $data =~ m#\s+((\w+\s*)+)</td>#g;.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2016-12-06 07:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (101 votes). Check out past polls.