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

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

Gomez
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

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

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 ?
Regards,

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], Google [Bot] and 8 guests