pyr Posted November 22, 2007 Share Posted November 22, 2007 in my field of form checking I have line for checking email validation: pattern=/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/; I'd like that CAPS letters are accepted too (exmple: [email protected]), but how to make this? Link to comment https://forums.phpfreaks.com/topic/78466-limit-char-entered-in-form/ Share on other sites More sharing options...
Orio Posted November 22, 2007 Share Posted November 22, 2007 Very very small change needed. Add the i modifer: pattern="/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/i"; Orio. Link to comment https://forums.phpfreaks.com/topic/78466-limit-char-entered-in-form/#findComment-397118 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.