Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WBRIDGE and version 24.0

Div
Classe2e-refDiv
Rp


Syntax
Code Block
languagenone
 set aStringArray = aString.capture(aRegExPattern)
SemanticsReturns a list of all captured groups that are identified by the regular expression.
SubstitutablesaStringCan be any variable or object attribute having the type String.  
aRegExPatternA variable or a literal containing a valid regular expression defining groups within aString.
aStringArrayAn array of String containing the found groups.
Examples

Assume we have an URL that we want to break down to its elements:

Code Block
languagenone
set aMailAddress = "support@e2ebridge.com";
set elements = aMailAddress.capture("(.*)@(.*)\.(.*)");
This will result in an array elements having the array elements ["support", "e2ebridge", "com"].
Panel
titleRelated Pages: