Regular Expressions 101

Community Patterns

选择题题目与选项匹配

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 - 9 months ago