{
return regexec(&r.expression, s.p->s, 0, 0, 0) == 0;
}
+
bool operator == (const regex &r, const String &s)
{
return regexec(&r.expression, s.p->s, 0, 0, 0) == 0;
}
+bool operator != (const String &s, const regex &r)
+{
+ return regexec(&r.expression, s.p->s, 0, 0, 0) != 0;
+}
+
+bool operator != (const regex &r, const String &s)
+{
+ return regexec(&r.expression, s.p->s, 0, 0, 0) != 0;
+}
+
substring String::operator()(const regex &r)
{
substring sub;