forum

Home / DeveloperSection / Forums / How to make a regex match case insensitive?

How to make a regex match case insensitive?

Anonymous User 2047 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.


c# c# 
Updated on 03-Feb-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By