Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Search for escaping character \ in sublime text 2

Could anyone help me understand why I am unable to search for \ or unicode in Sublime Text 2?

Searching for \u001B is not found although clearly in the file and an error occurs when searching for just ...

See attached image

Obviously doing something wrong but no idea what.

like image 301
rob582 Avatar asked Sep 12 '25 06:09

rob582


1 Answers

You have 'Regular expression' matching enabled (this is the leftmost button next to the search field). Since backslashes are used in 'regex' expressions, to search for a backslash, you would need to search for \\

To do simple, text-based matching (i.e., not use regular expressions), simply click the first button to disable Regular expression matching. You should then be able to search for \

like image 162
Greg Sadetsky Avatar answered Sep 15 '25 19:09

Greg Sadetsky