extract(str, schemes = nil, &block)
Class Public methods
Synopsis
1 | URI : :extract (str[, schemes][,&blk]) |
Args
-
str
-
String to extract URIs from.
-
schemes
-
Limit URI matching to a specific schemes.
Description
Extracts URIs from a string. If block given, iterates through all matched URIs. Returns nil if block given or array with matches.
Usage
1 2 3 4 |
Please login to continue.