I remember hearing about the option to search for an exact word in Sublime, but I can't seem to find it.
What I mean by this is if I search for write
, I'd like to exclude all instances of foo_write
, foowrite
, etc.
How can this be done?
Hit CtrlF (Win/Lin) or CmdF (OS X) to open up the Find tab. Make sure the first button on the left (Regular Expressions) is selected. In the search field, enter \bfoo\b
and click the Find button or hit CtrlG/CmdG to search. The \b
token indicates a word boundary, including spaces, punctuation marks like commas, periods/full stops, question marks, etc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With