This question is a good example of why you should always indicate the flavor of the regular expression that you use. Most regular expression flavors provide a way to match word boundaries, and most of them are used \bfor this. According to this page , wxRegEx allows you to choose one of three options: BRE, ERE or ARE. Of these, only ARE supports word boundaries and uses \y, rather than \b. Assuming you specify wxRE_ADVANCEDwhen compiling, this regular expression will match any string containing one of the words good, betteror best:
\y(good|better|best)\y
, , , . , *.[ch] - , , .c .h; \.[ch]$. , , , , , , glob. .*, $ , foo.cs bar.html.