Technically an empty string is not a valid URL. So your regular expression will have to accommodate for that.
You could also use a URL selector as a control type vs. a textbox. Using this you can configure this to allow or not allow someone to choose attachments, content tree items, media library items and/or a website URL. It makes it easier for someone to enter or select a link.