Returns a List with all URLs that could been matched from given input String. @param input The input String. @return A List with all URLs that could been matched from given input String.
(String input)
| 453 | * @return A List with all URLs that could been matched from given input String. |
| 454 | */ |
| 455 | public static List<String> matchURL(String input) { |
| 456 | List<String> result = new ArrayList<String>(); |
| 457 | Matcher matcher = INCREMENTAL_PATTERN.matcher(input); |
| 458 | while (matcher.find()) { |
| 459 | result.add(matcher.group()); |
| 460 | } |
| 461 | return result; |
| 462 | } |
| 463 | |
| 464 | /** |
| 465 | * Tries to match the message with the match string. Use * in match string will match any characters. Use ? will match a single character. |
no test coverage detected