java - Remove URL Prefix from String (http:/, www, etc.) -


i need remove kinds of "web beginnings" string

my textview must without "http://" , "http:// www." , "www." , other url prefixes.

please can me to ?

you can using regular expression

"www.aaa".replacefirst("^(http(?>s)://www\\.|http(?>s)://|www\\.)","") 

Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -