Possible Duplicates:
What is the best regular expression to check if a string is a valid URL
Java-How to detect the presence of URL in a string.
Is there a way to see if a string is a valid URL? I'm using MIDP library and there are not regular expressions in MIDP. Any help is greatly appreciated.