All Questions
Tagged with python-2.x validation
9 questions
1
vote
2
answers
799
views
Python Regex to validate an email
I have written this regex to validate an email. It seems to work fine. Can someone advise on the regex used? Does it work properly or can be done in a better way?
...
30
votes
2
answers
37k
views
Password checker in Python
Using Python 2.7.12 I wrote a simple little script, psk_validate.py, that prompts the user for a potential password and checks if it has upper and lower-case ...
2
votes
1
answer
77
views
Change passwords after being validated
I recently posted a program that I wrote that would change a password after being validated, the program can be found here.
I have rewritten this program, it has a couple new features:
Usernames
...
3
votes
1
answer
3k
views
Change password after being validated
I'm doing Python programming challenges and have come across one where the object of the challenge was to create a script to change passwords. The script must validate that the password contains, one ...
3
votes
1
answer
13k
views
Simple email validation script
I was doing a programming challenge and the object was to validate an email address, I wrote a simple little email validator and would like some input on how I can make it more efficient.
How it ...
62
votes
6
answers
5k
views
Accurate email syntax validation (no seriously)
So a friend happened to show me how odd and specific the general email syntax rules are. For instance, emails can have "comments". Basically you can put characters in parentheses that are just ignored....
6
votes
2
answers
223
views
Sudoku challenge driver program
For my planned Sudoku with Handicap challenge over at codegolf.SE, I need a driver program. I've decided to write it in Python, for learning purposes. Since I've got no Python experience, I thought I ...
3
votes
1
answer
394
views
Instantiating a kind of NumPy array
I am creating a class object which must inherit from numpy ndarrays. I perform an isinstance check and an ...
9
votes
5
answers
6k
views
Python odd number diamond
I worked up a quick diamond program that takes only odd numbers while returning an error with even numbers or 0.
The code looks rather ugly to me, especially with the recurring ...