Make regular expression case insensitive

Posted by Jeremy on Stack Overflow See other posts from Stack Overflow or by Jeremy
Published on 2010-04-14T21:37:13Z Indexed on 2010/04/14 21:43 UTC
Read the original article Hit count: 339

Given this regular expression: "^[0-9]\s(lbs|kg|kgs)$" how do I make it case insensitive? I am trying to use this in a .net regular expression validator, so I need to specify case insensitivity in the pattern.

© Stack Overflow or respective owner

Related posts about dotnet

Related posts about regular-expression