Re: REgular expression....difficult is it?
| From: | Ifrim Sorin | Date: | Mon, 19 Feb 2001 05:33:25 +0000 |
| Subject: | Re: REgular expression....difficult is it? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-40511@lists.php.net to get a copy of this message | ||
The ? meta-character is used for matching zero or one occurence of the
preceding character , in this case , l .
T'his means that you'll match all words that begin with 'Wi' and continue
with one or zero 'l' .
HTH
Sorin Ifrim
----- Original Message -----
From: Dhaval Desai <dhaval_adams@yahoo.com>
To: <php-general@lists.php.net>
Sent: Monday, February 19, 2001 7:23 AM
Subject: [PHP] REgular expression....difficult is it?
> Hi!
>
>
> I am not able to understand this REgular expression.
>
> /Wil?/
>
> would match "Winnie", "Wimpy" "Wilson" and "William",
> though not "Wendy" or "Wolf".
>
> Howz taht..?
>
>
> Can anybody explain me please.
>
> Thank You!
> Dhaval Desai
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35
> a year! http://personal.mail.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>