Treat a string enclosed in slashes as a regular expression. The name 'regexpr' is taken from the book. Fixes #286.