xref: /PHP-7.4/ext/pcre/tests/multiline.phpt (revision c93dc5d8)
1--TEST--
2Multi-line match
3--FILE--
4<?php
5
6var_dump(preg_match_all('/^.{2,3}$/', "aei\nou", $dummy));
7var_dump(preg_match_all('/^.{2,3}$/', "aei\nou\n", $dummy));
8var_dump(preg_match_all('/^.{2,3}$/m', "aei\nou", $dummy));
9var_dump(preg_match_all('/^.{2,3}$/m', "aei\nou\n", $dummy));
10
11echo "done\n";
12?>
13--EXPECT--
14int(0)
15int(0)
16int(2)
17int(2)
18done
19