Hi Julien On 18 June 2013 09:06, Julien Dombre <m...@indepnet.net> wrote:
> Hi, > > We are working on validation of login used in GLPI. > It is this ticket : > https://forge.indepnet.net/**issues/1878<https://forge.indepnet.net/issues/1878> > > Actually we check validation of login for external auth but not for > internal GLPI users and we want to have a common system for both. > > We used such a regex to check external logins : ^[[:alnum:]@.\-_ ]+$ > So all alpha numeric chars + @.-_ are valid (to be be able to used email > address) I think you can use [:punct:] regex class to match a broader set of non alpha chars along with the backslash char because it's not included in [:punct:] (according to wikipedia [1]). Cheers, [1] http://en.wikipedia.org/wiki/Regular_expression#Character_classes -- Kevin Roy
_______________________________________________ Glpi-dev mailing list Glpi-dev@gna.org https://mail.gna.org/listinfo/glpi-dev