Quantcast
Channel: What are non-word boundary in regex (\B), compared to word-boundary? - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by derenio for What are non-word boundary in regex (\B), compared to...

The basic purpose of non-word-boundary is to created a regex that says:if we are at the beginning/end of a word char (\w = [a-zA-Z0-9_]) make sure the previous/next character is also a word char,e.g.:...

View Article



Answer by Mark Byers for What are non-word boundary in regex (\B), compared...

A word boundary (\b) is a zero width match that can match:Between a word character (\w) and a non-word character (\W) orBetween a word character and the start or end of the string.In Javascript the...

View Article

What are non-word boundary in regex (\B), compared to word-boundary?

What are non-word boundary in regex (\B), compared to word-boundary?

View Article
Browsing all 3 articles
Browse latest View live


Latest Images