首页
技术人生
登录
6mi
u
盘
搜
搜 索
技术人生
Perl Regex: lookahead & lookforeword matching
Perl Regex: lookahead & lookforeword matching
技术
2022-05-11
119
#lookahead & lookforeword matching
___FCKpd___0
=
"
tom cat
"
;
if
(
/
tom
(?=
cat
)
/
) {
print
"
find tom, follow by cat
/n
"
; }
if
(
/
(?!
tom
)
cat
/
) {
print
"
find cat, and tom is in front of 'cat'
/n
"
; }
转载请注明原文地址: https://ibbs.8miu.com/read-2683.html
专利
最新回复
(
0
)