-3
正则表达式我想:匹配词不是始于
:\/
此相匹配,但如果用一句话或http://
开始https://
太匹配。
我的字符串:
:/ ewqeqw eqweqwe qwe http:// ewr ewr erwer ewr:) :/ dasd ewwqeqwe https:// ddfds :/
我想匹配除了内部http://
和https://
串:/
字符。
正则表达式我想:匹配词不是始于
:\/
此相匹配,但如果用一句话或http://
开始https://
太匹配。
我的字符串:
:/ ewqeqw eqweqwe qwe http:// ewr ewr erwer ewr:) :/ dasd ewwqeqwe https:// ddfds :/
我想匹配除了内部http://
和https://
串:/
字符。
你可能想是这样的:
~(?<!\S) :/ (?!\S)~x
如果有空格(或开始/结束字符串)周围的笑脸,因为这只会匹配。
谢谢..它成功;) –