in reply to Re: Converting to sub signatures
in thread Converting to sub signatures
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 {
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Converting to sub signatures
by kcott (Archbishop) on Jun 23, 2022 at 19:17 UTC | |
|
Re^3: Converting to sub signatures
by hv (Prior) on Jun 23, 2022 at 19:38 UTC |