|
|
|
|
|
by theamk
144 days ago
|
|
A lot of time I want to check for valid identifier: if not re.match('^[a-z0-9_]+$', user):
raise SomeException("invalid username")
as written, the code above is incorrect - it will happily accept "john\n", which can cause all sort of havoc down the line |
|