You are absolutely right about the regular expressions not working all that well. It did in fact fumble some commented out functions into non-working code.
I very seldomly use negative matches ("must not contain" stuff), usually i check first if the line is a comment, and THEN decide if a want to process further. How would i correctly anchor this?
Example code lines:
should match these: sub hello { sub hello { should not match these: #sub hello { # sub hello { # sub hello { # sub hello {
In reply to Re^2: Converting to sub signatures
by cavac
in thread Converting to sub signatures
by cavac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |