code_junkie

How can I ignore case in a regex?

Nov 13th, 2011
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. ValidationExpression="([^.]+[.](jpg|jpeg|gif|png|wpf|doc|docx|xls|xlsx ...
  2.  
  3. (jpe?g|gif|png|wpf|docx?|xlsx? ...
  4.  
  5. // Added LowerCase i:
  6. ValidationExpression="(?i:[^.]+[.](jpg|jpeg|gif|png|wpf|doc|docx|xls|xlsx ...
  7.  
  8. Dim RegexObj As New Regex("([^.]+[.](jpg|jpeg|gif))", RegexOptions.IgnoreCase)
Add Comment
Please, Sign In to add comment