AnsweredAssumed Answered

Nintex forms replace function

Question asked by waffles on Aug 27, 2014
Latest reply on May 7, 2018 by jharris73

I need help with how to use the Replace function with a regular expressions?

 

replace(textToModify, replacePattern, replacement)

 

I need to strip the '2;#' from the following text, which is a calculated field:

2;#Submitted

 

The replacePattern is what I am struggling with, in JavaScript, the pattern would be /\d;#/g, but it doesn't work, and I can't seem to get the syntax right.

 

I am using SharePoint 2013 and Nintex Forms 2013.

 

Can anyone help?

 

Thanks in advance

Outcomes