Wader, your regex pattern may need to be improved a tad more to reduce fallacy to the minimum as possible:
/(^|\s)(w{3}\.(?!\.)|https?\x3A\/\/(?!\/))[^\s]+(\.\w{2,6})(\s|$)/iS