How to find a link in some text?

Saturday, July 5, 2014

I have a string in java that might or might not contain some link(url like www.google.com) ,now I want to search in the string if it contains any link.I have two problems here:

1.What to search while searching for links .I mean link may or may not contain www,https,com,etc .so how to differentiate it from text..What is the RFC specifications for links?

2.which function in java to use for searching that regex?I am fairly new to java and don't know much about it.







http://ift.tt/1n1ZIVI