Hello there.
I am working on a form and I am trying to use pattern matching.
This one works fine whereby it only allows what is in the ereg() pattern:
if (ereg("([a-zA-z0-9.\,\'\& -])", $company, $arr3)) {$clean_up[company] = $arr3[0];}
This one doesn't find the characters in the ereg():
if (ereg("([{}[]<>])", $field2, $arr6)) {$clean_up[field2] = $arr6[0];}
(edit note: I just remove the '' from this expression - this corrected version is what didn't work - oops)
I tried it out on this test data: [email]afda.gsgs-hdhgf.dfg> and the '>' wasn't detected. There was no error message, either. The '>' was ignored.
Why?
Please help me!
Thanks.
Sherry