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
Post a Comment