Worked great only you forgot to escape the carat character. Thanks for the
help.
Josh
"Miguel Cruz" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Mon, 29 Apr 2002, Joshua E Minnie wrote:
> > Does anybody know of a good way to make sure that a string cont
On Mon, 29 Apr 2002, Joshua E Minnie wrote:
> Does anybody know of a good way to make sure that a string contains ONLY
> certain characters. I tried using
> ereg("[~`!@#$%^&*(){}-+=|\\/.,<>'\":;\[\]]", $string); but I get parse
> errors.
I'm surprised you get a parse error. I'd expect you would g
Does anybody know of a good way to make sure that a string contains ONLY
certain characters. I tried using
ereg("[~`!@#$%^&*(){}-+=|\\/.,<>'\":;\[\]]", $string); but I get parse
errors. Besides that I only want the characters A-Za-z0-9_ in $string. Is
there is simpler way to ensure this rather
Does anybody know of a good way to make sure that a string contains ONLY
certain characters. I tried using
ereg("[~`!@#$%^&*(){}-+=|\\/.,<>'\":;\[\]]", $string); but I get parse
errors. Besides that I only want the characters A-Za-z0-9_ in $string. Is
there is simpler way to ensure this rather
4 matches
Mail list logo