|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi,
Wondering if someone could point me to a piece of code that checks to see if password being created is at least 8 char long and has a number and a special character... Thanks |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Pakku wrote:
> Hi, > Wondering if someone could point me to a piece of code that checks to > see if password being created is at least 8 char long and has a number > and a special character... > Thanks Hi Paku, You want to look at regular expressions http://au2.php.net/manual/en/ref.pcre.php I've found this to be useful in learning regular expression syntax as well http://www.regular-expressions.info/ The alternative method is to use a whole heap of strpos and check if the result !== false http://au2.php.net/manual/en/function.strpos.php -- Hope this s, Cheers Leigh Finch www.phpmaniac.net |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
On Jun 12, 7:04pm, Leigh Finch <feiyan...@gmail.com> wrote:
> Pakku wrote: > > Hi, > > Wondering if someone could point me to a piece of code that checks to > > see if password being created is at least 8 char long and has a number > > and a special character... > > Thanks > > Hi Paku, > You want to look at regular expressionshttp://au2.php.net/manual/en/ref.pcre.php > > I've found this to be useful in learning regular expression syntax as wellhttp://www.regular-expressions.info/ > > The alternative method is to use a whole heap of strpos and check if the > result !== falsehttp://au2.php.net/manual/en/function.strpos.php > > -- > Hope this s, Cheers > Leigh Finchwww.phpmaniac.net Thanks- I had just stumbled across that regular-expressions link in a different context and was planning on reading it. This is synchronicity- I must read it now! |
|
![]() |
| Outils de la discussion | |
|
|