Regular expressions
Functions for working with regular expressions are described here.
Functions
FindFirstRegExp(str src, str re) arr.str
The FindFirstRegExp function finds the first occurrence of the regular expression re in the specified string src. The function returns an array of strings. The first element contains a substring that matches the regular expression, the remaining elements contain values of (...) groups, if they are defined in the regular expression.
FindRegExp(str src, str re) arr.arr.str
The FindRegExp function finds all occurrences of the re regular expression in the specified string src. The function returns an array of arrays. The first element in each array contains a substring that matches the regular expression.
Match(str s, str re) bool
The Match function reports whether the string s contains any match of the regular expression pattern re.
RegExp(str src, str re) str
The RegExp function returns the first occurrence of the regular expression re in the specified line src. If no match is found, an empty string is returned.
ReplaceRegExp(str src, str re, str repl) str
The FindRegExp function replaces matches of the re regular expression with the replacement string repl. You can specify $i or ${i} in repl* for i-the submatch.
Last updated