Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Regex problem , need immediate help

$
0
0
hi..
i am working on a script which extracts a webpage source and gets the table elements..
but my regex isn't working properly..

i want to extract the content between <table and </table> from the source..

code:
[ autoit ]      
$file = FileOpen("tyu.txt") $file_content = FileRead($file) FileClose($file) $table = StringRegExp($file_content, "(?s)<table((?s).*?)</table>",3) _ArrayDisplay($table)

and this is the text file :  http://www.comfaca.com/aiyo.txt




but the regex is working perfectly with the StringRegExpGui udf..

Thanks in Advance.

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>