Skip to main content
Nintex Community Menu Bar

Identify if prohibited characters exist in start event attachments.

  • February 28, 2025
  • 2 replies
  • 28 views

Forum|alt.badge.img+15

I managed to loop through and extract the output code for each attachment from a start event form file upload control and end with just the file name. I which this was available through the collection of information storing the attachments, similar to SPO list item attachment collection.

 

Anyways, now how do I build an expression on the branch by condition action to check for special characters? I want to kick it back to the user if any exist to try again. So I will be setting a boolean variable to YES if special characters exist is the idea. 

 

2 replies

Forum|alt.badge.img+15
  • Author
  • Communicator
  • February 28, 2025

I am trying this for now to identify if only contains these characters - guess easier to identify acceptable characters: 

^([a-z]|[A-Z]|[0-9])|(._-)*$

However, this didn’t work, so where or what is missing in my expression?

I referenced this old thread: Excluding characters in regular expression | Community


Forum|alt.badge.img+15
  • Author
  • Communicator
  • February 28, 2025

I legit had to ask copilot. Finally, it actually gave me something useful. 

^[a-zA-Z0-9\s.-]+$