Re: REgular expression....difficult is it?

From: Date: Mon, 19 Feb 2001 05:39:25 +0000
Subject: Re: REgular expression....difficult is it?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-40513@lists.php.net to get a copy of this message
[rearranged back to bottom-posting order, for clarity] In article <012901c09a35$7b64c640$8501740a@cec.ro>, sifrim@rsb.ro ("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

« previous php.general (#40513) next »