Skip to main content
Nintex Community Menu Bar

Check if string is empty with Regular Expression in Nintex

  • Jan 5, 2017 5:06 PM UTC
  • 3 replies
  • 35 views
  • Translate All

Forum|alt.badge.img+7

Hi all,

I have a regex with check match in my workflow and want to see if the string is empty.

I tried the obvious: .

But it didn't work for some reason.

I could type in [0-9a-z]  etc. but that wouldn't involve # or & or ...

I tried ..* as well but it didn't work. Ideas?

3 replies

Forum|alt.badge.img+16

Can you instead use "Set a condition" action which has built in comparison to see if a string is empty?

Translate

Forum|alt.badge.img+9
  • Jan 5, 2017 6:03 PM UTC

Is there a reason you have to do this with RegEx?  You can use a Set a Condition action and check if a variable is empty, and then perform an action on it depending on the result. 

Set A Condition - Check if Empty

Translate

Forum|alt.badge.img+14
  • Scholar
  • Jan 5, 2017 9:22 PM UTC

to check for empty string with regex use following pattern

^$‍
Translate