If you want to accept ^Y only at the end of the string (except for an optional final newline), you need the dollar sign: $string =~ /,Y$/
In reply to Re: regular expressions with commas?
by ambrus
in thread regular expressions with commas?
by webshark
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |