Mea culpa! You're right. Escaping the $ makes the difference.
The start of some sanity?
In reply to Re^5: Problems with a regex? by BrowserUk in thread Problems with a regex? by dwlepage