Escape the delimiter of a regular eexpression for use in pcre_* functions.