in reply to Re: How to match a ;in thread How to match a ;
The $ anchor will match the end of the line with or without a newline at the end so /^;$/ will match both ";" and ";\n".