Sublime Forum

Regex: \S finds all words but \s doesn't find anything

#1

I am trying to find and replace all whitespace with nothing. I tried using regex \s to find whitespace but it doesn’t find anything. It just says “Unable to find \b\s\b”. Curiously, \S finds all the words and excludes all the whitespace.

Why does \S works but \s doesn’t?

0 Likes

#2

Looks like you have enabled whole word search, press alt+w or the button to disable it.

1 Like

#3

Oh you’re right. I’m such a noob. Thank you!

0 Likes