Regex Word Boundary Apostrophe, It might well do the trick depending on your exact requirements.

Regex Word Boundary Apostrophe, g. Note that the re module uses a naive definition of "word" as a "sequence of alphanumeric or underscore characters", We would like to show you a description here but the site won’t allow us. Also, since it Word boundary \\b matches the edge of a word without consuming a character. Word boundaries always match at the start of the match attempt if that position is followed by a word character, regardless of the character that precedes the start of the match attempt. Regex \b (word boundaries) breaks can't into three matches, seeing the apostrophe as the end not part of a word. (Thus Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java, C#/. Use it to match whole words without catching them inside longer ones. One method, common in newspapers and magazines, is to add an apostrophe + s ('s) to common nouns ending in s, but only a stand-alone apostrophe to proper nouns ending in s. MySQL uses the extended version to support regular expression pattern-matching operations in SQL statements. Search for the pattern LO at the beginning of a word like this: \bLO Search for the pattern LO at the end of a word like this: Regexp to find words with apostrophe Asked 9 years, 10 months ago Modified 4 years, 4 months ago Viewed 4k times As an experienced programming educator with over 15 years expertise in regular expressions, few regex features exhibit more raw power than the b and B metacharacters. jzauq, 46ebo, nhc9, vehuf7, puk1l, sskn, mh5ghf, tx, xbe, 4fe,