Sublime: replace everything between quotes
I need help with regex search and replace in Sublime to do the following.
I have HTML code with links like
href="http://www.example.com/test=123"
href="http://www.example.com/test=6546"
href="http://www.example.com/test=3214"
I want to replace them with empty links:
href=""
href=""
href=""
Please help me create a reg. ex. filter according to my case. I guess it sounds like this: "starts with Quote followed by http: // .... ends with a quote and has numbers and an" = "sign, but I'm not really sure how to write this in Reg. Ex. Path.
+3
Albert
source
to share
1 answer
(?<=href=")[^"]*
Try it. Replace with empty string
.
See demo.
https://regex101.com/r/sH8aR8/40
+5
vks
source
to share