The Un-Official Proxomitron Forum

Full Version: simple filter
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
the goal is to remove this part from the link
<a set="yes" linkindex="85"
and replace it with
<a

in using proxo test mode, this works fine but does not when pages with this text loads

<a set="yes" linkindex="**"

here is a sample source code where this occurs

<li>
<a set="yes" linkindex="85" href="http://www.zat.zo/alkdhahd/2008/05/25/200814066/139?rss=2i" target="_blank">text here<span class="dtSmall">(07:03)</span></a>
</li>

<li>
<a set="yes" linkindex="86" href="http://www.zat.zo/ajkdajdh/2008/05/24/200814039/139?rss=2i" target="_blank">more stuff<span class="dtSmall">(07:31)</span></a>
</li>
In matching expression, try:

Code:
<a set="yes" linkindex="*"

Replacement Text:

Code:
<a
susa,

I also find it sometimes helpful to add a backslash before every occurance of a quotemark (either ' or "). Proxo uses both single and double quotemarks as metacharacters with special meanings, so I "escape" them (I escape that special meaning) by using the backslash. This forces Proxo to treat the quotes as only regular text, and nothing else.

I have found this to be especially true when matching quoted strings within a link, like you are doing. In your case, I'd form the search string like so:

<a set=\"yes\" linkindex=\"*\"

BTW, as per Scott's excellent suggestion, found in the Help file, I'd use the AND operator (the '&' metacharacter) to find those attributes no matter where they occur within the tag. That way if the website changes the order in which they create the string, your filter won't break. Check it out in the Help file, under Tips and Tricks, about half way down the page. Smile!

HTH



Oddysey
Reference URL's