For my part, I consider automatic inclusion of flags a kind of micro-cargo-culting. If they are there, my assumption is they are necessary for the code to operate correctly. That means that if they are not actually needed, my assumption may lead me to possibly misunderstand the source they will operate upon or need to investigate or read the regex a lot more closely than I normally would. Probably not a big, or any, deal in general but in the cases it might be, it will make me angry with the original dev. That said, I habitually use some constructions that violate my stated policy of the necessary, like +shift, so I am not really one to talk. :P
In reply to Re^7: How to extract a pattern in Perl regex?
by Your Mother
in thread How to extract a pattern in Perl regex?
by SergioQ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |