Love2c0de Posted November 29, 2012 Share Posted November 29, 2012 also, when I change your 'test' array values for instance, 'Christian' to 'Chrístian', it returns boolean false. I thought it was supposed to allow that character ? Regards, AoTB. Quote Link to comment https://forums.phpfreaks.com/topic/270957-auto-filling-form/page/3/#findComment-1396161 Share on other sites More sharing options...
Christian F. Posted November 29, 2012 Share Posted November 29, 2012 The {0,20} means that it'll accept 0 to 20 repetitions of the pattern/character, but sine we're matching one character prior to this the total will be 1 through 21 characters in length. As for the Unicode letter class (\p#), it's explained in detail in the PHP manual. Good catch in the apostrophe though, I'll have to remember to update my own code with that one. Quote Link to comment https://forums.phpfreaks.com/topic/270957-auto-filling-form/page/3/#findComment-1396286 Share on other sites More sharing options...
Love2c0de Posted November 30, 2012 Share Posted November 30, 2012 Yup I think I definitely have some studying to do! Thanks for all the help. Much appreciated. Kind regards, AoTB. Quote Link to comment https://forums.phpfreaks.com/topic/270957-auto-filling-form/page/3/#findComment-1396330 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.