That will never match. $ has to be followed by a line feed or EOS, and you also require that it's followed by a y. Those are mutually exclusive requirements.
In reply to Re^2: Confusion in working upon regex with /m
by ikegami
in thread Confusion in working upon regex with /m
by abdan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |