>>>>> "AM" == Alexey Mishustin <shum...@shumkar.ru> writes:

  AM> 1/18/2011, "Alexey Mishustin" <shum...@shumkar.ru> вы писали:

  >> I meant
  >> 
  >> (imgres)
  >> 
  >> OR
  >> 
  >> (images)
  >> 
  >> OR
  >> 
  >> (products)

  AM> Uri wrote the correct alternation for that:

  AM> (imgres|images|products)

  AM> So, I should write

  AM> /(www\.){0,1}(google\.).*\/(imgres|images|products)\?{0,1}/

you are still grabbing and not just grouping. and of course you are
still using {0,1} instead of ?

and finally you are using / for the delimiter when {} looks much better
when you have / in the regex.

uri

-- 
Uri Guttman  ------  u...@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to