Sublime Forum

Word search

#1

How can I specify the search function in ST3? For example, I want to search for the word ‘he’. Of course, when I do that, sublime finds all instances of he together, and so returns results with the, reached, when, coherent, and so forth. Is there a symbol I can add in my search bar that searches for he as its own, distinct word?

0 Likes

#2

You can always search with regex, for your example \bhe\b will find only the isolated ‘he’ instances.

0 Likes

#3

That’s strange, that didn’t work for me, but I discovered on the toolbar to the left after asking the question that there is a specific whole word search. I clicked on it and presto! it worked.

0 Likes

#4

The Regex option needs to be enabled, is the star icon of the far left.

0 Likes

#6

Ignore what I just typed. haha I read your comment again and understood.

0 Likes