Related Pages:
Syntax | set aStringArray = aString.capture(aRegExPattern) | |
---|---|---|
Semantics | Returns a list of all captured groups that are identified by the regular expression. | |
Substitutables | aString | Can be any variable or object attribute having the type String. |
aRegExPattern | A variable or a literal containing a valid regular expression defining groups within aString . | |
aStringArray | An array of String containing the found groups. | |
Examples | Assume we have an URL that we want to break down to its elements: set aMailAddress = "support@e2ebridge.com"; set elements = aMailAddress.capture("(.*)@(.*)\.(.*)"); elements having the array elements ["support", "e2ebridge", "com"] . |
Overview
Content Tools