Regular Expressions 101

Community Patterns

0

匹配合法的变量名

Python
\b[a-zA-Z_]\w+
Submitted by anonymous - 4 years ago
0

AMap POI ID

Python
no description available
Submitted by anonymous - 4 years ago

dnd roll regex v0.0.1

1

Regular Expression
Python

r"
^(?P<count>\d+?)(?:d|D)(?P<dice>\d+)(?P<modifer_sign>\+|\-)(?P<modifier>\d+)$
"
g

Description

Loading markdown...
Submitted by anonymous - 8 years ago