Scans text for URLs and email addresses using configured patterns.
Adds a URL pattern to the scanner.
The URL pattern.
Scans text for the next URL match.
The text to scan.
The starting index of the text.
The number of characters to scan, starting at startIndex.
startIndex
The URL match, or null if no match was found.
null
Scans text for URLs and email addresses using configured patterns.