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

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

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

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

Postby Gomez » Sun Dec 13, 2009 7:47 am

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: 2140
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia

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

Postby DataMystic Support » Mon Dec 14, 2009 3:43 pm

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

Simon Carter, - Insulin dose calculator for Type 1 diabetes - 250,000 free software downloads - send huge email attachments

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

Who is online

Users browsing this forum: No registered users and 3 guests