i've been using:
ereg('^[a-zA-Z0-9]{3,23}$', $_POST['password'])
to check that a password only contains letters and numbers, but how do i make whitespaces OK as well?
i saw \s is meant to in a regex meant to mean a whitspace, so i tried [a-zA-Z0-9\s] but it thinks its a backslash and an s...
hi,
Being in the proccess of designing a photo sharing website, I would like some advice on how to aquire an easy upload tool.
I am aware that html has its own simple file upload capabilities (with a "browse..." button) but this is not good enough for the users of my site - they need to be...
Hi, I'm trying to put together a PC for the first time, and have put together the following components:
* ADM Combo-Z motherboard
(http://www.sonicmarts.com/ask8coalim1c.html)
* Standard 512MB PC2100 DDR SDRAM
* Ide CD-rom, floppy disk drvie, hard disk
* GeForce 2 MX AGP graphics card
MY...
I'm wanting to create a perl sub called "checkValid". When I use this sub, I want to be able to pass to two string values to it and for it use perl's RegEx abilities to return a true or false response. However, I'm not too knowledgeable when it comes to RegEx, which is why I'm asking for your...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.