Re: Ereg problems
| From: | Niel Archer | Date: | Tue, 16 Jan 2007 11:38:56 +0000 |
| Subject: | Re: Ereg problems | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-27387@lists.php.net to get a copy of this message | ||
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