Possible Duplicate:
Converting ereg expressions to preg
I downloaded the Ocomon and edit the languages appeared: Deprecated: Function ereg() is deprecated. So, I researched and talked about what I should change for preg_match (), but gave the following error: Delimiter must not be alphanumeric or backslash.
The code is this:
ereg("^[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]{2,3}$",$email)