Regular Expression to Extract All Characters Before a Specific Character in Nintex Automation Cloud Workflow

You can extract all the characters before a specific character in a string using a regular expression in a Nintex Automation Cloud (NAC) workflow.

Here are the steps to follow:

  1. Insert an “Apply a Regular Expression” action into your workflow.
  2. Configure it with the following settings:
    1. Input text = Your text string (you can insert a variable or text directly)
    2. Operation = Extract
    3. Pattern = ^([^\/]+)
      • Where the “/” is the character to get text before.
      • Replace the “/” with your desired character.
    4. Ignore case = Yes (this may not be relevant)
    5. Store first result in = Your workflow variable
  3. You can then use this workflow variable as you need it in your workflow.

Below are some examples from using this Regular Expression:

String Regular Expresssion Result
yoursite.com/products ^([^\/]+) yoursite.com
12345.689 ^([^\.]+) 12345
123;#ABC456 ^([^\;]+) 123

Leave a comment

Website Powered by WordPress.com.

Up ↑