Regular Expressions 101

Community Patterns

0

匹配合法的变量名

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

import url image

4

Regular Expression
Python

r"
(?:http:\/\/)(.*?)\/(.+?)(?:\/|\?|\#|$|\n)\w*.jpg
"
g

Description

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