cancel
Showing results for 
Search instead for 
Did you mean: 
Nintex Newbie

Glitch in Regular Expression action by making the Replacement text field mandatory?

Jump to solution

The country name 'United Kingdom' becomes #UnitedKingdom  in all our articles and messages. Hashtags like this are used a lot. To create these we need to eliminate spaces from the country name. In NW Online I used to do this with a regex action and replace the pattern \s (space) with nothing (empty replacement text). 

In NWC the Replacement text field is now suddenly mandatory. 

2021-01-11_10-37-50.png

Is this a glitch or does anyone know another easy way to achieve the same result?

Labels: (1)
0 Kudos
Reply
2 Replies
Nintex Employee
Nintex Employee

Re: Glitch in Regular Expression action by making the Replacement text field mandatory?

Jump to solution

@woutert Create a variable and use that as the replacement text. As long as you don't set a value it should act as a blank.

View solution in original post

Reply
Nintex Newbie

Re: Glitch in Regular Expression action by making the Replacement text field mandatory?

Jump to solution

Duh... I should have thought about that myself . A trick we unfortunately frequently have to use.

But anyhow: it works for now. Thanks @leighburke .

So for anyone who wants to eliminate spaces from a string, use the regular expression action like this:
2021-01-12_9-31-46.png

0 Kudos
Reply