Exercise: Text Processing:Valid Usernames
Здравейте!Не разбирам къде ми е грешката тука изобщо.Моля за малко помощ!Мерси!
https://pastebin.com/PmgkzqXP
- Valid Usernames
Write a program that reads user names on a single line (joined by ", ") and prints all valid usernames.
A valid username is:
- Has length between 3 and 16 characters
- Contains only letters, numbers, hyphens and underscores
- Has no redundant symbols before, after or in between.
Examples
Input |
Output |
sh, too_long_username, !lleg@l ch@rs, jeffbutt |
jeffbutt |
Jeff, john45, ab, cd, peter-ivanov, @smith |
Jeff John45 peter-ivanov
|