Add support for \w and \d.