I have the following string: "WordContainingYes. no yes,- no! yes. no"
I need to replace all instance of "yes.", but leave "WordContainingYes." intact.
I'm using "\b(yes.)\b"
but it doesn't work when there is a punctuation mark inside pattern. So anyone knows how should I match a whole word + punctuation mark after it?
UPDATE
I need to match any punctuation mark after the word. Not only dot.
Thanks