Code: Select all
<a\shref="(.*)?pcre.ru(.*)?>(.*)?<\/a>
and test text sample "<a href="http://www.pcre.ru/bla">text</a>".
It work in perl, php, and online designer of regular expression (http://www.pcre.ru/eval/).
Screenshot what it work:

I tried to write such code, but it does not work:
Code: Select all
If CreateRegularExpression(0, "<a\shref='(.*)?pcre.ru(.*)?>(.*)?<\/a>")
Dim Result$(0)
NbFound = ExtractRegularExpression(0, "<a href='http://www.pcre.ru/bla'>text</a>", Result$())
For k = 0 To NbFound-1
Debug Result$(k)
Next
Else
Debug RegularExpressionError()
EndIf
