我們的網站上的文本編輯器出現問題,導致網址加倍。因此,例如,文本字段可能看上去包含:正則表達式在數據庫字段中查找錯誤的URL
This is a description for a media item, and here in <a href="http://www.example.com/apage.htmlhttp://www.example.com/apage.html">a link</a>.
所以幾乎我需要一個正則表達式來檢測以http開始,有一個結束引號之前另一HTTP,如「http://www.example.com/apage.htmlhttp://www.example.com/apage.html」
你只想要一個匹配或想要捕獲其中的一個? – 2009-09-25 16:59:18