I am using JavaScript regex that will check for the URL.
(?i)\b((?:[a-z][\w-]+:(?:/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))
I use this Regex to send messages to Twitter. What happens is that this makes sure that the URL contains WWW and/or HTTP.
But the problem is if the URL is like Guaridan.com.uk Twitter consideres it as a URL.
So how can I modify my Regex that it will not check for HTTP or WWW, meaning if it is there then it would not take any effect.
So it would match like My.co.com or dummy.com.in.