入力文字列は次のとおりです。
line = "Cat Jumped the Bridge"
出力は「Jumped the Bridge」である必要があります。
私は試した
s2 = re.match('\W+.*', line).group()
しかし、それは戻ります
Traceback (most recent call last):
File "regex.py", line 7, in <module>
s2 = re.match('\W+.*', line).group()
AttributeError: 'NoneType' object has no attribute 'group'
だから明らかに試合は失敗した。
提案をありがとう。ジョー