Find Whole Word only?
Submitted by Monday, 31 March, 2008 - 03:10
on
In the Find dialog, I'd like to be able to search for whole words only. E.g., I want to search for the word "cat" but not match occurrences of "catalyst". I cannot just put spaces before and after the word, because there are word delimiters other than a space, such as a comma, period, semi-colon, etc.
Some editors, UltraEdit I believe being one, has a "Find Whole Word Only" option in the search dialog, but jEdit does not. Does anyone know of an easy way to do this in jEdit, via a plugin or perhaps a regular expression? (If the latter, I'd prefer not to have to manually enter every possible punctuation mark every time I search this way.)
Some editors, UltraEdit I believe being one, has a "Find Whole Word Only" option in the search dialog, but jEdit does not. Does anyone know of an easy way to do this in jEdit, via a plugin or perhaps a regular expression? (If the latter, I'd prefer not to have to manually enter every possible punctuation mark every time I search this way.)