Allow escaped ^ and $ symbols.