#normally the code is in one line - but it's much more easy to read now :)#
return [regexp
"^.*<td><a class=\"orangelink\" href=\"/news/showdetail.aspx?news_id=1\">test(.+?)test.*"
"<td><a class=\"orangelink\" href=\"/news/showdetail.aspx?news_id=1\">testlalatest"
]
as you can see ... i just added sume htmlstuff in the front. but suddenly it returns 0
is there a limit of the stringlength or did i something wrong?
you forgot to escape "?" in the html code. btw. you should use {} braces around the re expressions, this makes even the escaping of the " quotes redudant .
besides... whats the meaning of "?" in "(.+?)"?