in reply to
regex prob
It turns out that you can just write
\w
- that matches any alphanumeric character just once. It is identical to your expr above.
-Adam
Update:
Of course, if the
<br>
above was intentional, that would go just after your
\w
.
Comment on
Re: regex prob
Select
or
Download
Code
Replies are listed 'Best First'.
Re^2: regex prob
by
Eimi Metamorphoumai
(Deacon)
on May 13, 2005 at 04:04 UTC
\w
also includes
_
(the underscore character). In most places it really doesn't matter, but it is a minor difference.
[reply]
[d/l]
[select]
Re^3: regex prob
by
Adrade
(Pilgrim)
on May 13, 2005 at 06:54 UTC
Actually didn't realize that! Thanks! Best, -Adam
[reply]
In Section
Seekers of Perl Wisdom