try putting it into chatgpt to write the regex

something like this
(?:https?://)?(?:www.)?[^\s/$.?#].[^\s]*

1 Like