in reply to Regex puzzle for you

Greetings all,
As far as I understood it the underscore is part of the \w character class in regex, so your /\b_+(\w+)_+\b/ worked the way it should have. If you just want the x's try /\b_+([a-z]+)_+\b/i next time.

-injunjoel
"I do not feel obliged to believe that the same God who endowed us with sense, reason and intellect has intended us to forego their use." -Galileo

Replies are listed 'Best First'.
Re^2: Regex puzzle for you
by Fletch (Bishop) on Aug 04, 2004 at 01:14 UTC

    Or [[:lower:]]+ if you want to respect locale.