Lugarini
Lugarini

Reputation: 802

How to split Regular Expression in Nintex

I am trying to split a value in Nintex, Sharepoint 2010
My value: ABCD\123456
I want to split "\" and return this:
ABCD
123456

But when I try this, it returns an error:
Error in regular expression action. parsing "\" - Illegal \ at end of pattern.

enter image description here

Upvotes: 0

Views: 4372

Answers (2)

Incans
Incans

Reputation: 182

Escaping the backslash is the correct answer.

In general, Nintex uses .NET regular expressions (REs). Look for an online .NET RE tester (there are a few). It will help you a lot when you're debugging REs.

Upvotes: 0

Arumoy Roy
Arumoy Roy

Reputation: 108

I think Mike gave the correct answer

Just use "\\" instead of "\" in the Pattern. I tried this by creating a sample workflow and it is working fine with "\\".

Upvotes: 2

Related Questions