PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloper’s Guide

Between

Finds every piece of text that sits between a start string and an end string, and returns them as a list.

Between looks through a text and returns every piece that sits between a start string and an end string, for example every value between [ and ], or every word between two tags. Use it to pull values out of a template, an email body or a log line without writing a regular expression.

Between was previously called String Between.

Add the action

In the Process Designer toolbox, open String and pick Between (or type Between in the search box).

The Between action properties: String to search in, Start string, End string, the two Include checkboxes and List of found strings

Inputs and outputs

FieldDirectionTypeRequiredWhat to put / what you get
String to search inInputTextYesThe text to search.
Start stringInputTextYesThe text that marks the start of each piece.
End stringInputTextYesThe text that marks the end of each piece.
Include start string in the resultInputBoolean (true/false)NoTick it to keep the start string at the beginning of every result. Off by default.
Include end string in the resultInputBoolean (true/false)NoTick it to keep the end string at the end of every result. Off by default.
List of found stringsOutputList of TextYesEvery piece found, in the order it appears. An empty list when nothing is found.

Example

String to search inStart stringEnd stringInclude start / endList of found strings
Order [A12] and order [B7] shipped[]off / off["A12", "B7"]
Order [A12] and order [B7] shipped[]on / on["[A12]", "[B7]"]
no brackets here[]off / off[]
Name: Ana; name: Ion;name: ;off / off["Ion"]
a-1-2-3-b--off / off["1", "2", "3"]
"one" and "two"""off / off["one", " and ", "two"]

Good to know

  • The search is case-sensitive. name: does not match Name: (see the fourth example).
  • Each result is the shortest piece between a start string and the next end string.
  • The same string can be a start and an end. A string that closes one piece can also open the next, so when the start and end strings are the same you also get the text between the pairs (last two examples).
  • A piece cannot span several lines. In <b>one + new line + two</b> <b>three</b> only three is found. Use RegEx Extract for text that spans lines.
  • Start and end strings are matched as plain text: characters such as ., *, ( or [ have no special meaning.

On this page