Case insensitive pattern validation

Hi- We are working on creating a holiday game for children using User Input. The correct answer is to be inputted and then submitted. However, I’m having issues getting the pattern validation regex code to work with case insensitive. We should like the string of text to be accepted in either uppercase, lowercase or a mix of cases.

How would I go about this? I’ve tried the below options with no success.
^gifts$/i
/^gifts$/i
/^gifts$/ig
and many other combinations.

Appreciative of any help provided!

Hi,
Check out this discussion about creating case insensitive regex.

Do you got it working? :smiley: