regex - Notepad++, find and replace, convert html to xml tags -


this huge record of mixed html , xml tags want clean. want replace html tag xml ones tried didn't work

find:

<tr> <td class="fid">fid</td> <td class="fidvalue">(.*)</td> </tr> 

replace:

<fid>\1<fid> 

this should replace similar values in tags, more 300 occurrences want maintain contents of 'tag' class values

what's appropriate regex use?

i might missing in question, notepad++ (as of v6.9.2) not have multi-line inputs in find-and-replace dialog. however, able achieve seem want specifying line-breaks manually (and assuming want carriage returns);

find: <tr>\r\n<td class="fid">fid</td>\r\n<td class="fidvalue">(.*)</td>\r\n</tr>

replace: <fid>\1</fid>


Comments