匹配不以 HTTP 开头的 Src 属性 [英] Matching Src attributes that don't begin with HTTP
本文介绍了匹配不以 HTTP 开头的 Src 属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试匹配所有不以 http
开头的 src
属性.
解决方案
那不是非"运算符.那是行首"锚字符.
s!^(?!http)/?!$PATH_BLAH/!
之类的东西可能正是您要找的.p>
I'm trying to match all src
attributes that do not begin with http
.
解决方案
That's not the "not" operator. That's the "beginning of line" anchor character.
Something like s!^(?!http)/?!$PATH_BLAH/!
might be what you're looking for.
这篇关于匹配不以 HTTP 开头的 Src 属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文