Steven Schveighoffer:

  long a = src.countUntil(start);
  if (a < 0)
    return src; // null
  a += start.length;
  long b = src[a..$].countUntil(end);

I think there it's better to use "auto" instead of "long".

Bye,
bearophile

Reply via email to