Find and replace using wildcard character in Notepad++

find and replacenotepadregex

I have very long list in this format:

<option value="adf">Option 1</option>
<option value="es3">Option 2</option>
<option value="34f">Option 3</option>

With Notpad++, how can I do a find and replace to change it to this format?:

<value="1">Option 1</option>
<value="1">Option 2</option>
<value="1">Option 3</option>

Best Answer

This replace should do it if I understand exactly what you want to accomplish:

enter image description here

Related Question