How can I know that some text contain \"http://www.\" I want to show domain in Web View. Domain name is written in TextView but there is no restriction to add prefix. If user di
As Sebastien requested, regex is a good option. You can also get the text from the view, create an URI object
Uri uri = Uri.create(view.getText().toString());
then with uri.somemethod You should be able to get everything about an url you want to know. If the uri fails to create, you generate error messages cause something has gone wrong.