Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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;.


Comment on Re: Help constructing a regex that also matches hyphens and parentheses
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2014-09-21 15:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (172 votes), past polls