Possible Duplicate:
How to detect the presence of URL in a string
Is there a way to find out user entered text is webiste url .
For example if user entered
www.yahoo.com
www.google.fr
can we detect it is a url String ?
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use
java.net.URLto detect presence of url in string.see the following thread :
How to detect the presence of URL in a string