Re: [PHP] Still an Almost working Regex

2001-03-06 Thread CC Zona
In article <002d01c0a69a$ea2c9aa0$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Murray Shields") wrote: > $Status = (ereg("^(^[A-Za-z0-9` !@#$%&()=:;\"\'.?/^|{}-]*)(.*)$", $String, > $List)); > > It is definitely working as expected. > > I need to add the square brackets [ ] to the above list of all

[PHP] Still an Almost working Regex

2001-03-06 Thread Murray Shields
I have a working regex as below, used for validating data input: $Status = (ereg("^(^[A-Za-z0-9` !@#$%&()=:;\"\'.?/^|{}-]*)(.*)$", $String, $List)); It is definitely working as expected. I need to add the square brackets [ ] to the above list of allowed characters. However, this does not work.