Search code examples
regexreplacenotepad++ultraedit

Notepad++ / UltraEdit: Search for id="xyz" and replace xyz


I want to build a test scenario and need to search in a html document for this:

<a id="xyz" href="#"></a>
<a id="123pa" href="#"></a>
<span id="sdasd"></span>

I want to replace id="someString" with id=""

Working with Notepad++ and UltraEdid.

Thanks for help.


Solution

  • Replace id=".+?" or id="[^"]+" by id="".