Users Pricing

forum

home / developersection / forums / how to make a regex match case insensitive?

How to make a regex match case insensitive?

Anonymous User 2434 03 Feb 2014

I have following regular expression for postal code of Canada.

^[ABCEGHJKLMNPRSTVXY]{1}\d{1}[A-Z]{1} *\d{1}[A-Z]{1}\d{1}$

It is working fine but accepts only Capital letters. I want it work for both capital and small letters.


I am a content writter !


1 Answers