Syntactic Confectionery Delight | |
PerlMonks |
Re^2: Regex to get everything before first /by JavaFan (Canon) |
on Jun 06, 2011 at 19:44 UTC ( [id://908358]=note: print w/replies, xml ) | Need Help?? |
/x modifier added to allow comments and insignificant whitespace (it makes everything prettier).And it's easy to get carry it too far. I find /([^\/]*)/ far superior to your novella. There's a guide line to not overdo comments. That's, don't do: That holds for patterns as well.
In Section
Seekers of Perl Wisdom
|
|