Home > front end >  Sublime Text regex to replace id="0acc108181701d" with empty
Sublime Text regex to replace id="0acc108181701d" with empty

Time:06-29

In sublime text, I need to replace all instances of:

id="0acc108181701d" 

where the value inside double quotes will be dynamic

With empty. Basically I want to remove all occurrences of id="*".

I tried to search for id\("(.*?)"\) but it didn't helped.

CodePudding user response:

How about something like this?
(?<=id=")(.*?)(?=\")
include id in find
(id=")(.*?)(?=\")

  • Related