My aim is to improve stripping single line comments in a script and even though the regular expression works, when stripping a large file (such as AutoItWrapper) it crashes AutoIt. So SRE gurus, if you like a challenge this one is for you. #include <Constants.au3> ; Should be MsgBoxConstants for all those rocking v3.3.10.0. ; Example() ; New line comment. Func Example() ; This is some comment after a function. Local $sText = "; This is a commment as a string and shouldn't be remov