Thanks, but it didn't work and I got the error message:
Quote:
|
Warning: preg_match() [function.preg-match]: No ending delimiter '/'
|
I used some text as an example that someone submitted into my form that reads:
Wouldn't the preg match just use letters A-Z and numbers as well as symbols !@#$%^ etc. to make this work?
*EDIT*
I finally found a google result but it doesn't really work either as it appears even for regular english text:
PHP Code:
if ( !preg_match('/^[a-z0-9\p{P}]*$/i', $description) )
{
$error_msg = "Please only use English characters such as letters a - z and numbers 0 - 9.";
}
Perhaps it just needs to be tweaked?