Regular Expressions 101

Community Patterns

123...6

Community Library Entry

0

Regular Expression
Python

r"
[\d]+\.([\s\S]*?)\n+A.([\s\S]*?)\n+B.([\s\S]*?)\n+C.([\s\S]*?)\n+D.([\s\S]*?)(?=\n)
"
g

Description

对有ABCD四个选项的选择题题目进行匹配

Submitted by Wang Miao - a year ago