Re: regular expression

From: Date: Tue, 01 Jun 2010 15:27:05 +0000
Subject: Re: regular expression
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-305692@lists.php.net to get a copy of this message
On Tue, Jun 1, 2010 at 11:19 AM, Tanel Tammik <keevitaja@gmail.com> wrote: > How to check with regular expression (preg) if string has: > > 1. only letters > 2. only letters and spaces > > Br > Tanel > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > $re1 = '/^[a-zA-Z]+$/'; $re2 = '/^[a-zA-Z ]+$/'; Adam -- Nephtali: PHP web framework that functions beautifully http://nephtaliproject.com

« previous php.general (#305692) next »