I know this might be a repeated question, but I want to know how to match a word (for example apple) that is not followed by any letters. So, banana-apple-a will pass but banana-applea will not.
Asked
Active
Viewed 36 times
0
-
2Use word boundary `\b` like so `\bapple\b` – ctwheels Jan 29 '18 at 19:29
-
You can use `\b\w+\b` – Federico Piazza Jan 29 '18 at 19:31
-
Ah that works! Thank you! – sxzhangzsx Jan 29 '18 at 19:34