Member predicate StringOps::RegExpTest::getPolarity
Gets the return value indicating that the string matched the regular expression.
For example, for regexp.exec(str) == null, the polarity is false, and for
regexp.exec(str) != null the polarity is true.