quote backslashes in regex patterns