Sublime Forum

Can't find-replace html codes

#1

Hello. Since today (but i must said i did not use Sublime texte for 5 our 6 weeks) I cannot make a find/replace on some html codes.

The characters / and < can not be recognised or find when they are used as a html code. (but, strangely, the > can be found).
In example :

  • if i try to find <p, Sublime say to me “unable to find \b<p\b
  • if i try to find p>, that works
  • if i try fo find /p>, Sublime say to me “unable to find \b/p>\b

Example in image with /ul>

This is a problem as i have to modify some codes.

By the past, sublime always accept to find and replace that kind of characters.

This is a sublime version 4200 on a LinuxMint (maybe first time i try to find html codes with Sublime on LinuxMint, i am not sure : this OS is a new one since 3 months, i use Sublime for years with MacOS, or Windows)

0 Likes

#2

Oh, yes, i should also say that when i try to find just a / character, Sublime can found it when it is not a code (in example, an url) but not when it is between < > characters.

0 Likes

#3

OK, sorry, i just notice that the button “In selection” was activated, that is probably the explaination !

S%C3%A9lection_025

0 Likes

#4

The clue is in the status bar, the whole word option was turned on which causes ST to wrap the find string in regex \b nodes. It is a known problem, reported at

1 Like

#5

OK, i see. You mean this was this button (see captcha) that was involved.
I was close to the good solution.

S%C3%A9lection_026

0 Likes