我想要匹配所有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