[PHP] Re: Looking for an easier regex check...

2002-04-29 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (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. Besides that I only want

[PHP] Re: Looking for an easier regex check...

2002-04-29 Thread Henrik Hansen
[EMAIL PROTECTED] (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. Besides that I only want the characters A-Za-z0-9_ in