-2
我可以有很長的文字可以包含以下任一:正則表達式來發現寫成文字的網址,而不是鏈接
http://desktop.com/
和
<a href="http://desktop.com/" target="_blank" data-mce-href="http://desktop.com">http://desktop.com</a>
我的查詢是,我需要得到所有當前沒有出現在使用正則表達式的鏈接上的獨立網址,然後我將把獨立網址更改爲鏈接。
此外,還有一點是,鏈接可以出現在文本中的任何位置,在行的開始/結束處/結束處。
註冊精通使用HTML:請仔細閱讀本:http://stackoverflow.com/questions/1732348/regex-match- open-tags-except-xhtml-self-contained-tags – epascarello
基本上,您需要遍歷元素並檢查其文本是否包含鏈接。 – epascarello