@owly r1:RegexUtil = RegexUtil() print(r1.extractRegex("(?<=if\s)(.*?)(?=\sthen)", "if test went ok, then good")) print(r1.extractRegex("(?<=then\s)(.*)", "if test went ok, then good")) :s34: