There doesn't appear to be a way to get a $ at the beginning of a pattern it blows up with a length exception.