I have been given a task to detect whether the written string is a valid URL or not. And if it is a valid URL, make it an active link.
E.g.: if for example I write hello www.djfh.com then it should detect that this is a valid URL and linkify it and make it an active URL.
If I write wwwwww.jvhdfj.fd then it should not linkify it as it is not a valid URL.
How do I make a link depicted as an active URL in java using jquery or JS or any other logic.