March 16th, 2012, 03:31 AM
How to search and replace an expression by another when using Regex in Notepad++
In a directory of html files, several files contain the following chain :
where xxxxxxxxxx is a chain which can vary from 10 to 100 characters
I would like to replace
When using the Serach and Replace function of Notepād++, is there a way to make such replacemnt ?
Thank you in advance for any help in this matter.
March 17th, 2012, 12:00 AM
I don't know about Notepad++ (I've heard that its regex capabilities are poor). In EditPadPro (which is regex-friendly) you can use this:
This uses a negative lookahead, which N++ may not support.
If you know for sure that there is not going to be another tag inside the font tag, then you can use something simpler that will work with a more primitive regex engine:
Please let us if one of those works.