Keep It Simple, Stupid | |
PerlMonks |
Re: Help constructing a regex that also matches hyphens and parenthesesby kutsu (Priest) |
on Apr 05, 2006 at 17:14 UTC ( [id://541446]=note: print w/replies, xml ) | Need Help?? |
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;.
In Section
Seekers of Perl Wisdom
|
|