我想要匹配所有URL但排除與該正則表達式匹配的圖像url:jpe?g | gif | png。 (?:https?| ftp | file):// [-A-Z0-9 + & @#/%?=〜_ | $!:,。;] * A-Z0-9 + & @#/%=〜_ | $匹配所有網址排除jpg,gif,png
的問題是,與排除部分不工作是這樣的:(?!?JPE G | GIF | PNG)
有沒有人有一個解決方案爲了它?
例子:
不Matchen:
http://example.com/example.jpg
http://example.com/example231/example.gif
比賽:
http://example.com/example.html
http://example.com/example/?id=4331
http://example.com/example/example/ex_ample/ex-ample/?id=4331
很好的簡單的工作解決方案很多謝謝:) – Nicy