Issue #3143235 by alexpott, mondrake: Convert ::expectExceptionMessageRegExp to ::expectExceptionMessageMatches (cherry picked from commit eba9a180)