Extracting text from two specific html tags

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
Guest

Extracting text from two specific html tags

Post 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
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Post 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
Post Reply