/\Z/ should be /\z/ (my fault), and you shouldn't have kept the "chr".
/\\(["^\\])/ looks buggy. Are you sure those are the only symbols that can be escaped? If it's not buggy, you'll need to adjust the error message since no case will handle '\#', for example.
In reply to Re^5: Regex Parsing Style
by ikegami
in thread Regex Parsing Style
by Jim
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |