Originally Posted by dynabook
Could someone explain the dotall option? Does it have to do with greedy matching? Or what?
DotAll is (supposed to be) the (?s) PCRE flag.
Basically it comes down to if in an expression you do .*
it matches just a single line or not. Say you want to get rid of whole script blocks, you can do <script>.*</script>
with DotAll turned on, but that won't work with it turned off because the closing </script> is on a different line in the file.