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: $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 perfect