Regular Expressions 101

Library entries

匹配html中的关键词

Vote

1

Regular Expression
pcre

/
<([a-zA-Z\d]+?)([^<>]|(?!.*href).*)>([^<>]*?)(小编)([^<>]*?)(<\/\1>)
/
gm

Description

Loading markdown...
Submitted by anonymous - a year ago