1/18/2011, "Uri Guttman" <u...@stemsystems.com> вы писали:
>>>>>> "AM" == Alexey Mishustin <shum...@shumkar.ru> writes: > > AM> /(www.){0,1}(google\.).*\/(imgres)|(images)|(products)\?{0,1}/ > >{0,1} is just ? by itself. Yes, I know. But I like the {a,b} syntax more :) It's more uniform than ?,+,* etc. >you don't need to grab things that are not used later on. also why grab >each trailing word separately which means it will be hard to tell what >word was there. Where did I grab things that are not used later? What do you mean by trailing word? >the . after www needs to be escaped (it is unlikely ever to be other >than a real dot, but it is good practice and correct to escape it). Yes, it was a mistake. >using alternate delimiters means you don't need to escape / which makes >it easier to read. Sure. -- Regards, Alex -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/