question: public static String stripUrl ( String url ) { if ( url == null ) return null ; Matcher m = STRIP_URL_PATTERN . matcher ( url ) ; if ( m . matches ( ) ) { return m . group ( 1 ) ; } else { return url ; } }
target:  Strips the provided url of preceding "http://" and any trailing "/". Does not strip "https://". If the provided string cannot be stripped, the original string is returned. TODO: Put this in TextUtils to be used by other packages doing something similar.