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

objective c - Newbie question -multiple parameters -

iphone - Using nested NSDictionary with Picker -

php - accessing mysql using different server to which db connection data is located -