I want to create regex where the {{if gender == }} will be fixed and "Male", "Female", "Both" and "Unknown" will be dynamic values to be checked. I have tried something like this
/^\{\{if gender == "Male"|"Female"|"Both"|"Unknown"\}\}$/i
but this only checks {{if gender == "Male" and it's not good. Also, I have tried something like this
/^\{\{if gender == ("Male"|"Female"|"Both"|"Unknown")\}\}$
but this only shows me a group. What am I doing wrong?