Hello! This is my first post here. :)
I'm trying to use this regexp pattern to filter form input (the message body) that will be emailed to me from a "contact us" form.
The pattern is (i removed the punctuation and other special chars for the sake of ease):
$clean['match'] = '/^[A-Za-z0-9]+$/m';
But it seems to check only the last line. When i use it in a single line mode (i use the same pattern for the subject - without the m) it works fine. I've been trying to work it out but i can't find what's going on. Everything that i've read says that using "m" will check over multiple lines blablabla but obviously i'm missing something small here cause it can't be that hard to accomplish this.
Can someone help me please!