public final class URLUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
URL_REGEX_STRING
Supports domain names and IPv4.
|
| Modifier and Type | Method and Description |
|---|---|
static String[] |
extractURLs(String source,
Pattern initialMatchPattern,
boolean multiple)
Extracts URLs matching given pattern from given String.
|
public static final String URL_REGEX_STRING
public static String[] extractURLs(String source, Pattern initialMatchPattern, boolean multiple)
source - String to extract URLs from.initialMatchPattern - Pattern that URLs must match.multiple - If false, return the first URL only, if true, return all.initialMatchPatternCopyright © 2017 JBoss by Red Hat. All rights reserved.