In 75 pattern re compile 50 In 76 pattern findall The Twelve Kingdoms

1
2
3
4
5
6
7
In [75]: pattern = re.compile(r'.{0,50}\w*(?:.)')
In [76]: pattern.findall('The.Twelve.Kingdoms.14.Shadow.of.the.Moon.Sea.of.the.Shadow.Shadow.of.the.Moon,.Sea.of.the.Shadow.Chapter.of.Recollection.mkv')
Out[76]:
['The.Twelve.Kingdoms.14.Shadow.of.the.Moon.Sea.of.the.',
'Shadow.Shadow.of.the.Moon,.Sea.of.the.Shadow.Chapter.',
'of.Recollection.mkv']