0

I am checking for a string in SharePoint 2013 SPD workflow using regular expression but it is not working. My condition is:

If Current Item:UserDepartment matches regular expression /\W(technology)\W/i  
   Log Test1 to the workflow history list  
Else  
   Log Test2 to the workflow history list  

And it always prints "Test2". The "UserDepartment" field contains value "Information Technology" and I am trying to check if it contains string "technology" case insensitive using above regular expression.

1 Answer 1

1

You could try this regular expression:

(?i)(?<= |^)technology(?= |$)

My test result:

https://regex101.com/r/dpOWuf/1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.