Reputation: 525
I made this very simple regex
extract("ProductCode",0,message)
And of course it's working but I have no idea how to make it case-insensitive. I tried to add 'i' flag like this
extract("productcode/i",0,message)
or like this
extract("/productcode/i",0,message)
nothing works.. no idea what I'm doing wrong. Please help
Upvotes: 1
Views: 869
Reputation: 12448
You can try the following syntax:
(?i)productcode(?-i)
This will make that part of your regex case insensitive. You can dismiss the (?-i) if you want to apply it to the whole regex.
Good luck.
Upvotes: 2