Changes between Initial Version and Version 3 of Ticket #5709
- Timestamp:
- Oct 8, 2007, 3:21:09 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5709
- Property Owner changed from to
-
Ticket #5709 – Description
initial v3 1 For conveinence, it would be nice if the RegexField supported inverse matching; i.e. the contents of the field do NOT match the regex when they're valid. I needed this in the course of using a RegexField for username signups. I have a list of undesirable usernames, like so: 2 1 For conveinence, it would be nice if the !RegexField supported inverse matching; i.e. the contents of the field do NOT match the regex when they're valid. I needed this in the course of using a !RegexField for username signups. I have a list of undesirable usernames, like so: 2 {{{ 3 #!python 3 4 INVALID_USERNAME_REGEX = '(admin|root|add|edit|administrator|service)' 4 5 Since it's not trival to make a regex that uses ^against words rather than characters this is useful.5 }}} 6 Since it's not trival to make a regex that uses `^` against words rather than characters this is useful.