
Escape a string for use in a regular expression
Source:R/archive-zenodo-upload.R
dot-zenodo_regex_escape.RdFolder paths routinely contain characters that are regex metacharacters (.
and ( are common in project names), so a path cannot be pasted into a
pattern unescaped.