private boolean isURLString(String string){
  final Matcher urlMatcher=URL_PATTERN.matcher(string);
  return urlMatcher.find();
}

private boolean isURLString ( String string ) { final Matcher urlMatcher = URL_PATTERN . matcher ( string ) ; return urlMatcher . find ( ) ; }
checks whether a string containing at least one ' / ' or ' \ ' character is likely to be a url .
