You're right, I was not paying attention. It was selecting the last character, which was the underscore and the boundary was the
following character. If you do your test with a space following the underscore, you will see what I mean.
RecipeTools Web Site: <http://recipetools.gotdns.com/
John's Mags Yahoo Group: <http://groups.yahoo.com/group/johnsmags/
] On Behalf Of Axel Berger
Sent: Saturday, March 16, 2013 23:51
Subject: Re: [Clip] Re: \W and underscore
> As discussed here, the underscore is defined as a normal word character.
You're absolutely right. I had taken John by his word and not tested
In the text
aaa bbbccc aaabbb ccc aaa bbb ccc
aaa_bbbccc aaabbb_ccc aaa_bbb_ccc
aaa _bbb ccc aaa bbb_ ccc aaa _bbb_ ccc
aaa_ bbb_ccc aaa_bbb _ccc aaa_ bbb _ccc
the pattern "\bbbb\b" (b was a bad letter choice in hindsight) matches
the last string in the second and in the fifth line, nothing else.
[Non-text portions of this message have been removed]