Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: regex prob

by Adrade (Pilgrim)
on May 13, 2005 at 01:27 UTC ( [id://456583]=note: print w/replies, xml ) Need Help??


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.

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.
      Actually didn't realize that! Thanks!  Best,  -Adam

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-03-29 02:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found