Filter Help

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

edjerum
Posts: 3
Joined: Sat Dec 03, 2005 1:26 am
Location: San Diego

Filter Help

Postby edjerum » Sat Dec 03, 2005 7:16 am

Hello Simon,

I'm trying to build a filter that will extract just the unique text from several HTML pages from our website I've tried to use find and replace to remove the template (reappearing) html, java script, text and images from each page but can't figure out how to get it to remove more than one line at a time. An example of a page is at http://newcar101.com/auto-loan.html

Any help would be appreciated.

[/url]
ED

User avatar
DataMystic Support
Site Admin
Posts: 2137
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Postby DataMystic Support » Mon Dec 05, 2005 8:53 am

Why don't you try using the search/replace filter - and just replace with nothing? The search/replace filter handles multi-line text too.
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

edjerum
Posts: 3
Joined: Sat Dec 03, 2005 1:26 am
Location: San Diego

Search and Replace

Postby edjerum » Mon Dec 05, 2005 10:32 am

Hi Simon,

That worked. Thank you.

On other question. When I use the filter to remove HTML tags can I except certain tags that I want to keep?

Thanks for your help.

Ed
ED

User avatar
DataMystic Support
Site Admin
Posts: 2137
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Postby DataMystic Support » Mon Dec 05, 2005 11:32 am

Hi Ed,

No - but if you precede the Remove HTML filter with a filter to modify the tags you want to keep to, say, [...] instead of <...> then this will work too.

e.g. Find perl pattern

<(\?(body|table|tr)[^>]*)>

Replace with

\[$1\]
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

edjerum
Posts: 3
Joined: Sat Dec 03, 2005 1:26 am
Location: San Diego

Thank you

Postby edjerum » Mon Dec 05, 2005 12:00 pm

Thanks Simon.
ED


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: DataMystic Support and 1 guest