string x = "alpha beta_gamma"; assert(x.skipOverAround("alpha", "gamma")); assert(x == " beta_"); assert(x.skipOverAround(' ', '_')); assert(x == "beta");
See Implementation