Hi, I want to check that a string entered via a from contains the only
cdertain characters including the Euro currency symbol using a reg exp
in PHP.
I've set my web page to use charset=iso-8859-15 and tried
$allowed = "[^-a-zA-Z0-9.:,!+£$ \\ ". chr(128) ."]";
if ( ereg( $allowed, $str) )
but the ereg regects any string containing the symbol.
Any help would be great,
Kevin
cdertain characters including the Euro currency symbol using a reg exp
in PHP.
I've set my web page to use charset=iso-8859-15 and tried
$allowed = "[^-a-zA-Z0-9.:,!+£$ \\ ". chr(128) ."]";
if ( ereg( $allowed, $str) )
but the ereg regects any string containing the symbol.
Any help would be great,
Kevin
Comment