-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
如果有空格(或開始/結束字符串)周圍的笑臉,因爲這隻會匹配。
謝謝..它成功;) –