Fix '^' regex pattern.