Nintex Connect

The Official Community Site for Nintex Software Products, including Nintex Workflow 2007, 2010 and 2013; Nintex Workflow for Project Server 2010; Nintex Reporting 2008 and Nintex Analytics 2010; Nintex Forms 2010; Nintex Live and Nintex SmartLibrary.
Welcome to Nintex Connect Sign in | Join | Help

Re: Regular expression - I think

  •  06-30-2011, 2:15 AM

    Re: Regular expression - I think

    Hi kdavis4,

    You are right with using a regular expression for this. For your scenario I would recommend to use the regular expression with 'split' operation. As comma is the separator in your string you have to define the pattern with ','. The result you must store in a workflow variable of type 'Collection'.

    As result your string is then saved in three values in the workflow variable, looking like this some text;some more text;sometimes text.

    The next step is getting the required parts out of this workflow variable. For this purpose you can make use of 'Collection Operation' action with 'Get' operation. To configure this action you have to create three workflow variables:

    • Variable 1 - for Index (Type: Number)
    • Variable 2 - for the first string (Type: Text)
    • Variable 3 - fot the second string (Type: Text)

    Then add the following actions:

    1. add a 'Set a variable' action and define 'Variable 1' with '0' to point to 'some text' in your collection variable.
    2. add a 'Collection Operation' with your collection variable as target collection, index: 'Variable 1' and store result in: 'Variable 2'.
    3. add another 'Set a variable' action and define 'Variable 1' with '1' to point to 'some more text' in your collection variable.
    4. add another 'Collection Operation' with your collection variable as target collection, index: 'Variable 1' and store result in: 'Variable 3'.
View Complete Thread
Powered by Community Server, by Telligent Systems