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

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -