Regex Select String Between Two Strings Codeforces