regex_match

The regex_match method performs a regular expression match on a string. If the string matches the regular expression the full string (and sub-matches) are returned. The match is case sensitive by default.

Syntax

regex_match( input, regex [, case] )

Arguments

Argument Description
input (string) The string in which to search.
regex (string) The regular expression with which to search.
case (boolean) A boolean that specifies whether the match is case-sensitive. The match is case sensitive by default (true).

Returns

(Strings). Multiple strings that can be assigned to a table. To assign the return values to a table, surround the function call with braces. For example:

matches = { regex_match( input, regex ) }

© 2014 Hewlett-Packard Development Company, L.P.