I am having a strange problem where a tiny percentage of usernames are slipping through the regex validation somehow, by having spaces in their usernames.
My understanding is that this regex will be true for alphanumeric strings between 5 and 20 characters. In fact I can’t get it to slip up - so how does anyone else get past it?
I know, its so weird that I get these sporadic occurrences, when I can’t get past the function myself.
I did obviously consider the possibility that the usernames are changing somewhere else in the application without the validation, but there simply is no other place that the username can be set, apart from on registration.
oh well - once in a blue moon I can live with, i’m sure one day i’ll have a ah-ha moment. Thanks for inputs.
and there is my ah-ha moment… All of the problematic usernames are older than I thought they were… I think the regex was updated 18 months or more ago none have come through since then.