Replace pcre1 with pcre2 in gregex, since pcre1 is now deprecated. See also discussion in #1085 for context.
Closes #1085