How to collect text between <a....> and </a>?

Get help with installation and running here.

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

Post Reply
Gomez
Posts: 1
Joined: Sun Dec 13, 2009 7:36 am

How to collect text between <a....> and </a>?

Post by Gomez »

Hello!
I have such code

Code: Select all

<td class='text3 bold'>Some_text:</td>
                    <td class="text2">Text: <a ....>here,</a> there <a....>and there</a>and so on</td>
I want string "Text: here, there and there and so on"

Expressios like

Code: Select all

<td class='text3 bold'>Some_text:</td>(.*)<td class="text2">(.*)<a(.*)>(.*)</a>, <a(.*)>(.*)</a>(.*)</td>
and selection 2,4,6,7 and capture to variables
produce errors like
"The recursion and backtracking limit has been exceeded. Rewrite the pattern" :(

And what if more or less links (from 1 то 3) (random) in needed block? :?
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: How to collect text between <a....> and </a>?

Post by DataMystic Support »

Why don't you just use Filters\Remove\HTML and XML\Remove all tags ?
Post Reply