In the presence of the /m regex modifier, the behavior of $ is enhanced.
In reply to Re^3: How to match a ; by AnomalousMonk in thread How to match a ; by ewhitt