Oh what a difference a $ makes (especially in a regex)