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? Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.