How to make dot match newline characters using regular expressions
PHP Snippet 1:
'/<div>(.*)<\/div>/s'
PHP Snippet 2:
'/<div>(.*?)<\/div>/s'
PHP Snippet 3:
'/<div>([^<]*)<\/div>/'
PHP Snippet 4:
'#<div>([^<]*)</div>#'
PHP Snippet 5:
%\<div\>([\s\S]*)\</div\>%
PHP Snippet 6:
(?s)/<div>(.*?)<\/div>
PHP Snippet 7:
(.|\n)
PHP Snippet 8:
'/<div>(\n*|.*)<\/div>/i'