~((?:https?|ftp)://)?[\w-]+(?>\.[\w-]+)+(?>[.,]*(?>[\w@?^=%/\~+#;-]+|&(?:amp;)?)+)*~
https://www.regexplanet.com/share/index.html?share=h6jp0a