Ho can I use regular expression in DMN

Hi all,

I m very new to Camunda. I was searching on the internet to implement regular expressions in DMN input.

my aim is to validate the input email. using DMN. I will appreciate if anyone shares the solution.

i was trying something like in the attachment.

Hi @JAI_PRAKASH_SINGH ,

DMN does not accept regular expressions per se, but this post might help show you how to accomplish the same thing with FEEL: Zeebe DMN Worker : literal expression in Javascript not supported - Zeebe Client - forum.camunda.io

For reference, FEEL has the built-in function matches() to check regular expressions.

Your expression should work and returns true if the input value matches the pattern.

matches(?, "^[a-zA-Z0-9+_.-]+@[a-zA-Z0-9.-]+$")
1 Like