次の入力を一致させたい。複数行の文字列を使用せずにグループを特定の回数一致させるにはどうすればよいですか? (^(\d+) (.+)$){3}) のようなもの (ただし、動作しません)。
sample_string = """Breakpoint 12 reached
90 good morning
91 this is cool
92 this is bananas
"""
pattern_for_continue = re.compile("""Breakpoint \s (\d+) \s reached \s (.+)$
^(\d+)\s+ (.+)\n
^(\d+)\s+ (.+)\n
^(\d+)\s+ (.+)\n
""", re.M|re.VERBOSE)
matchobj = pattern_for_continue.match(sample_string)
print matchobj.group(0)