regex - Altering HTML tags using Notepad++ -


i have long list of html tags following:

<option>text 1</option> <option>text 2</option> 

etc...

i wish use notepad++ make list following:

<option value="text 1">text 1</option> <option value="text 2">text 2</option> 

thanks

use regular expression?

find: <option>([^<]+)</option>

replace: <option value="\1">\1</option>

then use individual find/replace don't accidentally clobber didn't intend to.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -