Search

Syntax

	$pattern.regexSearch($text)

Description

Searches for matches to the given pattern in the given text. The pattern is created from a string using the regex() expression. The result of the search is a list of search hits in the given text. A search hit can be accessed with the expressions regexGroup(), regexStart() and regexEnd( ).

Parameters

Name Type Description Mandatory Default
pattern Business object The regex pattern to use to perform the search on text. See Create pattern yes
text String The string to apply the search to using the regex pattern. yes

Return value

Type: Set

A set of all results that match the regex pattern.

Examples

	regexSearch(regex("[0-9]"), "H3ll0 w0rld!")

Output: List of elements [3, 0, 0]