Regex Capture String Between Two Strings Codeforces Solutions