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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -