Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
Result = SRP_Regex("SearchAll", String, Pattern)

Returns

An @RM @FM delimited list of matches, if found, or "" if no matches are found.

Parameters

ParameterDescription
StringThe target string to be pattern matched. (REQUIRED)
PatternThe regex pattern. (REQUIRED)

Remarks

The SearchAll service looks for all matches within a string. Each match is stored in a @FM delimited list, with each element having the following structure.

PosNameDescription
<x, 1>
StringThe actual substring matching the pattern.
<x, 2>
PosThe starting position of the match within the original string.
<x, 3>
LengthThe length of the match.
<x, 4>
CapturesAn @SVM delimited list of captured groups. (You can learn more about capturing groups here.)

If you don't care about all this information and just want the matched strings, use the ExtractAll service instead.

...