I think we need this as `$` is a normal regexp char (it's an anchor like `^`).