A /$/ will match a newline as well as end-of-string. To match a literal end-of-string, use /\z/ instead.
In reply to Re^2: conditional syntax options
by kyle
in thread conditional syntax options
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |