I tried the "m" modifier but did not work:
$reg = '/...
/m';
preg_match($reg,...,$match);
EDIT
Or maybe I need a modifier that can ignore spaces like ENTER, TAB, etc. Because when I remove the space in my regular expression, it works.
EDIT AGAIN :
I need a modifier to regex
"/aaaa b/",
"/aaaa
b/"
- the same thing, say, it just ignores the space in the regular expression itself.
source
share