Re: [PHP] Almost working Regex

2001-03-05 Thread Murray Shields
Yes. > Did you try escaping it with the \? > > > At 04:51 PM 3/6/01 +1000, Murray Shields wrote: > >For data validation, I am using the following regex: > > > >$Status = (ereg("^(^[A-Za-z0-9` !@#$%&()=:;\"\'.?/^|{}-]*)(.*)$", $String, > >$List)); > > > >This works perfectly for the moment. Howeve

Re: [PHP] Almost working Regex

2001-03-05 Thread Yasuo Ohgaki
> For data validation, I am using the following regex: > > $Status = (ereg("^(^[A-Za-z0-9` !@#$%&()=:;\"\'.?/^|{}-]*)(.*)$", $String, > $List)); > > This works perfectly for the moment. However, I need to add both square > brackets [] to the list of allowed characters above. This is JavaScripts R

Re: [PHP] Almost working Regex

2001-03-05 Thread Rick St Jean
Did you try escaping it with the \? At 04:51 PM 3/6/01 +1000, Murray Shields wrote: >For data validation, I am using the following regex: > >$Status = (ereg("^(^[A-Za-z0-9` !@#$%&()=:;\"\'.?/^|{}-]*)(.*)$", $String, >$List)); > >This works perfectly for the moment. However, I need to add both sq