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. However, I need to add both square
> >brackets [] to the list of allowed characters above.
> >
> >But when I add the closinjg bracket ], the regex stops working. There are
no
> >errors, but it accepts any and all characters as valid.
> >
> >How can I add these additional characters to the regex and avoid this
> >problem?
> >
> >Thanks.
> >
> >======================================================================
> >Murray Shields Email: [EMAIL PROTECTED]
> >MU Systems Pty Ltd Phone: +61 7 3351 6677
> >Global Catalogs Pty Ltd Phone: +61 7 3351 4777
> >
> >
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> ##########################################################
> # Rick St Jean,
> # [EMAIL PROTECTED]
> # President of Design Shark,
> # http://www.designshark.com/
> # Quick Contact: http://www.designshark.com/messaging.ihtml
> # Tel: 905-684-2952
> ##########################################################
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]