import re

regex = r"^\|[^\w\|]*(\w+\s+(?=\w+)[^\|]*)"

test_str = ("------------------------------------------------------------\n"
	"#2016-12-24\n"
	"| 单词 | 解释 | 例句 |\n"
	"| --------- | -------- | --------- |\n"
	"|**accelerator;**| - | - |\n"
	"|**compass**| - | - |\n"
	"|**wheels**| - | - |\n"
	"|**fabulous**| - | - |\n"
	"|**sweeping**| - | - |\n"
	"|**prospect**| - | - |\n"
	"|**pumpkin**| - | - |\n"
	"|**trolley**| - | - |\n"
	"|snapped,**| - | - |\n"
	"|tip| - | - |\n"
	"|lap| - | - |\n"
	"|tether.| - | - |\n"
	"|damp| - | - |\n"
	"|triumphant| - | - |\n"
	"|sarcastic| - | - |\n"
	"|missed out| - | - |\n"
	"|sidekick| - | - |\n"
	"|considerable| - | - |\n"
	"|Willow.| - | - |\n"
	"|eagle.| - | - |\n"
	"|considerably.| - | - |\n"
	"|flat.| - | - |\n"
	"|feast| - | - |\n"
	"|scramble| - | - |\n"
	"|turned up| - | - |\n"
	"|rounded off| - | - |\n"
	"|rat| - | - |\n"
	"|resembled| - | - |\n"
	"|By the time she had clambered back into the car,| - | - |\n"
	"|By the time she had clambered back into the car, they were running very late,| - | - |\n"
	"|wheeled his trolley| - | - |\n"
	"|barrier,| - | - |\n"
	"|bounced| - | - |\n"
	"|in blazes| - | - |\n"
	"|clutching| - | - |\n"
	"|sealed| - | - |\n"
	"|stunned.| - | - |\n"
	"|‘We’re stuck,| - | - |\n"
	"|marched off| - | - |\n"
	"|accelerator| - | - |\n"
	"|and the prospect of seeing Fred and George’s jealous faces| - | - |\n"
	"|protest.| - | - |\n"
	"|in protest.| - | - |\n"
	"|horizon,| - | - |\n"
	"|knuckles| - | - |\n"
	"|metal| - | - |\n"
	"|thick| - | - |\n"
	"|reached the end of its tether.| - | - |\n"
	"|Artefacts| - | - |\n"
	"|blurted out.| - | - |\n"
	"|gaped| - | - |\n"
	"|I will be writing to both your families tonight.| - | - |\n"
	"|‘Can you believe our luck, though?’| - | - |\n"
	"|‘Skip the lecture,’| - | - |\n"
	"|people’ll be talking about that one for years!’| - | - |\n"
	"|nudged| - | - |\n"
	"|‘I know I shouldn’t’ve enjoyed that or anything, but –’| - | - |\n"
	"|dashed| - | - |\n"
	"------------------------------------------------------------")

matches = re.finditer(regex, test_str, re.MULTILINE)

for matchNum, match in enumerate(matches):
  print(match.group(1))


