Is there a difference between [^\b]
and .
?
I was modifying some code created by someone else that included this no-word-boundary-character-class ([^\b]
). and am not able to find a difference between that and wildcard .
(this is in ruby).
My assumption was that [^\b]+
when applied to the string hello world
should match hello
and stop before the space, (as that is where there is a word boundary.
My observation is that it seems to just match everything. rubular link.
What should be happening here?