>>>>> "AM" == Alexey Mishustin <shum...@shumkar.ru> writes:
AM> 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. AM> Yes, I know. But I like the {a,b} syntax more :) It's more uniform than AM> ?,+,* etc. it is noisier and more people know the shortcuts. code so other people can read your code as it is for them, not yourself. >> 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. AM> Where did I grab things that are not used later? What do you mean by AM> trailing word? look in perldoc perlre and look at the difference between (foo) and (:?foo). >> using alternate delimiters means you don't need to escape / which makes >> it easier to read. AM> Sure. see, you agree about easier to read. do the same with your use of {a,b}. 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/