Re: [PHP] Re: Quickly verifying single word.
- Date: Thu, 05 Jun 2008 08:19:45 +0200
- From: Per Jessen <per@xxxxxxxxxxxx>
- Subject: Re: [PHP] Re: Quickly verifying single word.
Shawn McKenzie wrote:
>> if (preg_match('/[\s]*/', $string) === false) {
>> echo 'No spaces!';
>> }
>>
>> -Shawn
>
> Second one doesn't work for some reason. No time now to test, will
> later.
How about:
if (preg_match('/\s/', $string) === false) {
echo 'No spaces!';
}
/Per Jessen, Zürich
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- Follow-Ups:
- Re: [PHP] Re: Quickly verifying single word.
- From: Usamah M. Ali
- Re: [PHP] Re: Quickly verifying single word.
- References:
- [PHP] Quickly verifying single word.
- From: Tyson Vanover
- [PHP] Re: Quickly verifying single word.
- From: Shawn McKenzie
- [PHP] Re: Quickly verifying single word.
- From: Shawn McKenzie
- [PHP] Quickly verifying single word.
- Prev by Date: Re: [PHP] Regex in PHP
- Next by Date: [PHP] Are there free http mysql tunneling writed in php ?
- Previous by thread: [PHP] Re: Quickly verifying single word.
- Next by thread: Re: [PHP] Re: Quickly verifying single word.
- Index(es):