Page 1 of 1

Extracting text from two specific html tags

Posted: Tue Oct 04, 2005 8:09 am
by Guest
At the moment I'm evaluating Textpipe Pro, I would like to use to extract text between two html tags

Example:

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

Should return

John Lemon
fishing and hunting

Or

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

Posted: Tue Oct 04, 2005 10:43 am
by DataMystic Support
Try an EasyPattern:

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

Replace with:

$1
$2