Skip to main content
Nintex Community Menu Bar

Pull out only the text after ";" into another column

  • August 9, 2019
  • 4 replies
  • 8 views

Forum|alt.badge.img+9

I have a column which captures the email subject. All items have the same email subject followed by the relevant/unique country name: 

    emailsubject;country

The country in the email subject makes the email unique. I need to pull the country out into a country column to allow filtering on the country.

 

;w+ works for countries with one word but I need a pattern that will work for single or multiple words in the country name.

For example - using ;w+ for Spain works but for Saudi Arabia it only picks up the Saudi.

 

Thanks

 

@vadim_tabakman 

4 replies

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • August 10, 2019
Hi,
I would use a regular expression to split the string at the ; and then update the colum with the required country.
No regex is required.
That will put the two halves into a collection variable and you just need to pull out index 1 to get the half that you need.

Forum|alt.badge.img+9
  • Author
  • Rookie
  • August 20, 2019

@SimonMuntz 

Thanks - Can you explain how I pull the index to get the half I require?


Forum|alt.badge.img+9
  • Author
  • Rookie
  • August 20, 2019
Company name,text,moretext
This is my pattern I need to pull the company name only. Please note that the company name may consist of one word two words or more.

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • August 20, 2019
The regular expression ^[a-zA-Zs]+ shoud work for company names with spaces in them.