Golang - 使用正則運算式提取鏈接
我需要example.de使用 Go 中的 Regex從特定域中的文本中獲取所有鏈接
以下是應提取的所有可能鏈接:
https://example.de
https://example.de/
https://example.de/home
https://example.de/home/
https://example.de/home some text that should not be extracted
https://abc.example.de
https://abc.example.de/
https://abc.example.de/home
https://abc.example.de/home
https://abc.example.de/home some text that should not be extracted
我已經嘗試過的
我使用此網站檢查我的正則運算式是否正確:
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/473028.html
