[rearranged back to bottom-posting order, for clarity]

In article <012901c09a35$7b64c640$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Ifrim 
Sorin") wrote:

> > I am not able to understand this REgular expression.
> >
> > /Wil?/

> 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' .

More than that, it'll match any string in which a capital 'W' is followed 
by a lowercase 'i'. For example:

"Don't you love Wile E. Coyote?"
"I'm Wigging Out."
"The password is 'KiWi'."
"The password is '123Wiked'."

-- 
CC

-- 
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]

Reply via email to