in reply to comment inside perl regular expression
Regex are tough enough to read without inserting comments into them. What's wrong with putting a detailed comment block above the regex explaining what/how it does what it does? That's what I do so when I inevitably go back to modify it at a later date, I don't have to 'learn' regex all over again.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: comment inside perl regular expression
by Anonymous Monk on Mar 14, 2009 at 11:21 UTC |