Hi,
I'm going nuts. I've got heaps of html-pages, that have to be adjusted, since there are "a href" tags within "pre" "/pre" code, that have to be removed. Some code like this:
In the meantime I found espresso to work with, but it doesn't satisfy my needs. I found the following regex:
But it's not the end of the flagpole, but I don't know how to complete it. At the moment the regex is working partialy, but not as a whole.
Can someone help me, PLEASE?
Cheerio,
Heike
I'm going nuts. I've got heaps of html-pages, that have to be adjusted, since there are "a href" tags within "pre" "/pre" code, that have to be removed. Some code like this:
<preclass="brush:xml;toolbar:false;gutter:true;"><constructiongroups xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance"<br>
xsd:noNamespaceSchemaLocation="svgdescription.xsd"><br><constructiongroup><br><fza>5</fza><br><<atitle="HST"href="1802.htm#o2441">hst</a>>10</hst><br><<atitle="HT"href="1802.htm#o2442">ht</a>>30</ht><br>
In the meantime I found espresso to work with, but it doesn't satisfy my needs. I found the following regex:
(?:<pre .*\b>)*(?:<a[^>].*href="[0-9]+\.htm\#o[0-9]+"[^>]*>)(?:</a>)(?:</pre)
But it's not the end of the flagpole, but I don't know how to complete it. At the moment the regex is working partialy, but not as a whole.
Can someone help me, PLEASE?
Cheerio,
Heike