Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
什么值得买文章评论解析
Open Workspace
Python
Substitution
Created 2020-08-06 02:42
1
Regular Expression
r"""
<img
[^
>
]
*
alt="
(
[^
"
]
+
)
"
[^
>
]
*
>
"""
gm
Description
https://www.smzdm.com/p/23523045/p3/#comments
解析引用评论内容, 为保持表情顺序, 使用正则分步替换
Submitted by
Anonymous