2

I'm new to Regex and Notepad++ need to remove variables from code. For example, remove everything between the double quotes in lines like this: alt=""Frontline Plus for Dogs and Cats""

To leave me with alt=""""

I know it's probably simple, but I couldn't find any answers that made sense to me. Sorry and thanks!

1 Answer 1

1

Remove everything between the double quotes

  • Menu "Search" > "Replace" (or Ctrl + H)

  • Set "Find what" to alt="".*?""

  • Set "Replace with" to alt=""""

  • Enable "Regular expression"

  • Click "Replace All"

enter image description here

Before:

alt=""Frontline Plus for Dogs and Cats""
alt=""Frontline Plus for Dogs and Cats""
alt=""Frontline Plus for Dogs and Cats""

After:

alt=""""
alt=""""
alt=""""

Further reading

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .