Name
regexppos — Returns a pair with position and length of the first match.
Synopsis
list
regexppos
( |
string
INPUT
, |
|
string
PATTERN
) ; |
Parameters
-
string
INPUT
-
string
PATTERN
Description
If no match is found it returns an empty list.
Usage
regexppos ("abcd012efgh345", "[0-9]+") -> [4, 3]
("aaabbb", "[0-9]+") -> []