static uregex re1 ("//+");
static uregex re2 ("[^/]+/\\.\\.(/|$)");
static uregex re3 ("(/|^)\\.(/|$)");
+ static uregex re4 ("^/\\.\\./");
umatch m;
uiterator b, e;
assert (0);
}
}
+ while (usearch (path, m, re4)) {
+ e = path.end ();
+ path = ustring (m[0].second - 1, e);
+ }
Bp1:;
}