Reputation: 5423
Is there an alternative regular expression that matches \b.
I want something that matches . (dot) as well.
for example I want to capture ABC. (with . included)
I could write \b[\w]+\b
but it doesn't capture . (dot)
I would also like to capture a word such as ABC (without dot)
So is there a way to exclude some of the characters that \b matches with?
Some of the stuff I like to match with same regular exppression:
ABC
ABC.
Upvotes: 1
Views: 1415