Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
[$£€]?\d+[\.\,]?\d*(bn)?p?m?(euro)?(euros)?
"
gm

Description

怎么在匹配 30p, 500m时,不会匹配到文章中的年份和百分比数字

Submitted by anonymous - 2 years ago