Hello,
Currently i have a input box which will detect the url and parse the data.
So right now, i am using
var urlR = /^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)
(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/;
var url= content.match(urlR);
problem is, when i enter url like www.google.com, its not working, when i entered http://www.google.com, is working..
i am not very fluent in regex. can anyone help me?
thanks.