
SarahS.89561 (Customer) asked a question.
Find Pattern Card - Need a regular expression for does not contain
I need a string that will look for a groups that starts with Yell, but is not Yellow. eg. Yellowish would be a match, Yellow would not
Can't seem to find a string that will work in a Find Patter Card

Hi @SarahS.89561 (Customer) ,
I've been doing some digging on this as its a bit complicated.
(?!Yellow$)((Yell)\S*) works as a regex to match your use case, however, it is using a negative lookahead, which is not supported in Go, the engine backing the Workflows "Find Pattern" card.
I haven't been able to determine a good alternative that is available in Go, but I thought I'd share some resources in the event it is helpful during your investigations. https://regex101.com/ is a great resource, and supports changing the engine to "Golang" on the left "Flavor" navigation pane. If you select this, it will give you some good tutorials about writing Go supported regex, and you can test there.
I think the best bet here would be to just find all that start with "Yell". Then do an additional step to confirm it is not the excluded groups. If you have more than one excluded group you could use a lookup table.
1) Find all that start with Yell
2) Make a lookup table of each group you want to exclude and have its output be "True" and if not matched "False" using the (Boolean - T/F type)
3) Then do a continue if that says: If Lookup table that you are using to exclude groups == "False" continue with the flow. Otherwise it will stop there.
Hi Tim
Settled on this which seems to work, basically it's looping through a users groups for a pattern and then writing it to a table for user in the parent flow