DonB
|
| Posted: 10/12/2007, 5:25 PM |
|
I think you want to remove the ^ and the $ and pick some other character as
the 'delimiter' (such as / or @)
Something to do with Perl vs C pattern rules. PHP follows the Perl rules in
it's preg_xxxx() functions.
--
DonB
http://ccswiki.gotodon.net
"RES" <RES@forum.codecharge> wrote in message
news:5470fd29d25fd8@news.codecharge.com...
> I'm trying to get this regular expression validation on the password
field. but
> it fails everytime. I've used it successfully on online testers. But i
can't
> get it to work with codecharge successfully.
>
> here is the reg exp
> ^(?=.*[a-zA-Z])(?=.*[A-Z])(?=.*\d)[a-zA-Z0-9]{8,15}$
>
> The password should have 1 uppercase, 1 lowercase, 1 number, and no
special
> characters.
>
> please help.
> _________________
> RES
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|