in reply to Re^2: Recursive Regex
in thread Parsing using Regex and Lookahead
Good catch re. the s modifier, I missed that. Thanks for the correction.
With regard to your second point, from the way the OP initialised $code I don't think always ending with a newline was the requirement s/he was addressing. For the more general case you are correct.
Cheers,
JohnGG
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |