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. 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. 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. 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
Archived
This topic is now archived and is closed to further replies.