Why do you think you need $ at all? especially when combined with /s?
Just match the line ending if you want it, ...[\r\n]+...
In reply to Re: Disambuating $ in (especially /m) regexps
by Anonymous Monk
in thread Disambuating $ in (especially /m) regexps
by tlhackque
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |