Skip to main content

Text parser for Action Flows

When using the Text Parser module to identify file extensions, a standard regex like \..+ may show a match in external testers but fail to produce output bundles in Action Flows. To successfully capture and use the extension as a variable, you must use capturing groups.

Before configuring the text parser, ensure that you have:

  • An active Action Flow in the Celonis Platform.

  • A variable containing a filename (e.g., filename.docx).

To configure the text parser:

  1. Add the Text Parser module to your Action Flow.

  2. In the Pattern field, enter the following regular expression:

    \.(.+)

    Note

    The parentheses () create a capturing group, which tells the parser specifically which part of the match to return as a value.

  3. Ensure the Global match checkbox is selected if you are processing multiple filenames in one string.

  4. Map the output from the Text Parser to your subsequent module. You will now see the extracted extension (e.g., docx) available in the mapping panel.

Related topics