in reply to Re^2: Perl Regular Expression inconsistency
in thread Perl Regular Expression inconsistency
By that logic an unmatched ')' doesn't mean anything so shouldn't need to be escaped, yet it generates an error.
japhy's eplanation is satisfying for unmatched '{' and '}' and extends to an unmatched ']' too. Why not extend the argument to an unmatched ')'? Is that so much more likely a "You Really Mean That?" error that it's worth special casing?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Perl Regular Expression inconsistency
by hv (Prior) on Mar 14, 2006 at 21:00 UTC | |
Re^4: Perl Regular Expression inconsistency
by wazoox (Prior) on Mar 14, 2006 at 21:38 UTC |