Extracting text from two specific html tags

Get help with installation and running here.

Moderators: DataMystic Support, Moderators


Extracting text from two specific html tags

Postby Guest » Tue Oct 04, 2005 8:09 am

At the moment I'm evaluating Textpipe Pro, I would like to use to extract text between two html tags


My name is <b>John Lemon</b> and i like <b>fishing and hunting</b>

Should return

John Lemon
fishing and hunting


My name is <a href="http://www.johnlemon.com">John Lemon</a> and I like <a href="http://www.fishing.com">fishing and hunting</a>

Should return:

John Lemon
fishing and hunting

I trying to do it with "Extract matches" filter but i have yet to find a regular expression that match :(
Anyone can help me ?

Thank you

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

Postby DataMystic Support » Tue Oct 04, 2005 10:43 am

Try an EasyPattern:

My name is <b>[ capture(1+chars)]</b> and i like <b>>[ capture(1+chars)]</b>

Replace with:


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

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

Who is online

Users browsing this forum: Baidu [Spider] and 9 guests