Re: Ereg problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

> I want to allow the following: a to z, A to Z, 0 to 9, and "_-'" (without
> the double quotes) and spaces. I have now been screwing around with this for
> over 8 hours. There are other issues as well that has been compoudning this,
> but this would be a great start to solving my issue.

I don't use ereg (prefer preg_match) but unless the regex syntax is
greatly different try: "$[\w'-]+$"

Niel

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux