Page 1 of 1

Remove ln tags from HTML files

Posted: Tue Aug 10, 2010 7:31 pm
by mark235
I'm trying to remove ln tags from a large collection of html files.
The following regular expression works in Textpad, but not in WildEdit:

Search:
<ln[^>]*>.*<end>\n\n
Replace:
null

Are their specific WildEdit settings that need to be changed in the "options" tab to make this work, or can this expression not be used in WildEdit?

Other expressions such as the ones below work just fine

Search:
<ahtag[^>]*>.*</ahtag>
Replace:
null

Search:
—
Replace:
&mdash;

Edit: sorry mods, this post probably belongs in the regular expressions forum instead of here

Posted: Wed Aug 11, 2010 8:39 am
by mark235
Ah, I see that \n needs to be preceded by \r to make this work in WildEdit:
<ln[^>]*>.*<end>\r\n\r\n
It now works.

Thanks for a great product guys, I'm very happy with it