Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Re: Reserved Username(s) Regex Question

Quote Reply
Re: Reserved Username(s) Regex Question In reply to
I think it's designed to only support * and ? to make it simple for the normal user. If it were to support normal regex users would have to learn how to use regex just to use this feature and that wouldn't be too nice...

I do think the regular * and ? are probably all most people need for matching usernames and hosts, and full blown regex would probably be overkill (and prone to error).

*'s are 0 or more of a character.
.'s are 1 of any character.

so using a . for username and usernames won't work. using a * would work, but then would work with usernamesabc.

One solution is changing the regex that checks this. You would change the ?. Currently it probably tr's ? to a .
If you made it change it to a .? then it should match 0 or 1 of any character.

Adrian
Subject Author Views Date
Thread Reserved Username(s) Regex Question ryel01 2650 Jul 31, 2001, 2:55 AM
Thread Re: Reserved Username(s) Regex Question
Paul 2553 Jul 31, 2001, 3:30 AM
Thread Re: Reserved Username(s) Regex Question
ryel01 2520 Jul 31, 2001, 3:43 AM
Post Re: Reserved Username(s) Regex Question
brewt 2507 Jul 31, 2001, 11:03 AM