Page 1 of 1

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

Posted: Sun Dec 13, 2009 7:47 am
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? :?

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

Posted: Mon Dec 14, 2009 3:43 pm
by DataMystic Support
Why don't you just use Filters\Remove\HTML and XML\Remove all tags ?