For Programmers: Free Programming Magazines  


Home > Archive > PHP on Windows > February 2007 > Re: [PHP-WIN] Ereg problems









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-WIN] Ereg problems
Niel Archer

2007-01-16, 8:01 am

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
Niel Archer

2007-01-16, 8:01 am

Oops that should be "^[\w'-]+$"

Niel
Codio

2007-01-29, 9:40 pm

My girlfriend's private videos :)
http://jayna-blog.info/
Playa

2007-02-05, 3:30 am

look, I have that inside of me
http://dildo-pleasure.info/videoplayer.php?file=218571
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com