I'm using the following expression to check input strings: if (!ereg("^[[:alnum:]_-]+$", $string)) { get outta here! } This works fine except for when a string has spaces, as in text. What do I need to add to the expression to handle spaces (internal, not at the beginning or end). Thanks Mick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
- Re: [PHP] ereg Michael Hall
- Re: [PHP] ereg Chris Adams
- Re: [PHP] ereg Steve Edberg
- [PHP] ereg Matthew Delmarter
- Re: [PHP] ereg ReDucTor
- [PHP] ereg Christoph Starkmann
- [PHP] Re: ereg lallous
- [PHP] ereg Kunal Jhunjhunwala
- Re: [PHP] ereg Jimmy
- Re: [PHP] ereg Kunal Jhunjhunwala
- RE: [PHP] ereg Niklas Lampén