An open API service indexing awesome lists of open source software.

https://github.com/gridhead/regexpval-example

A simple regular expression validator which looks, feels and works good
https://github.com/gridhead/regexpval-example

Last synced: about 1 year ago
JSON representation

A simple regular expression validator which looks, feels and works good

Awesome Lists containing this project

README

          

# regexpval-example
Version 0.06

A simple regular expression validator which looks, feels and works good

## Usage
1. Clone the project and make it your working directory
2. In terminal, type ```pip3 install -r requirements.txt``` and hit ENTER
3. Now type ```python3 index.py``` and hit ENTER to run the application
4. Give stars to the repository if it was helpful

## To-do
- [X] Validator function for first name (Length specified)
- [X] Validator function for last name (Length specified)
- [X] Validator function for phone number (Length specified)
- [X] Validator function for email address (Length NOT specified)
- [X] Strength evaluator for password (Length NOT specified)
- [X] Validator function for security PIN (Length specified)
- [X] Add masking in the password field
- [X] Add masking in the security PIN field
- [X] Correct the tab order for fields

## Screenshots
* Window

![Window](regexp_main.png)

* Message for failed validation due to empty string

![Message for failed validation due to empty string](regexp_emty.png)

* Message for failed validation due to illegal characters

![Message for failed validation due to illegal characters](regexp_fail.png)

* Message for successful validation with password strength WEAK

![Message for successful validation with password strength WEAK](regexp_weak.png)

* Message for successful validation with password strength MEDIUM

![Message for successful validation with password strength MEDIUM](regexp_mdum.png)

* Message for successful validation with password strength STRONG

![Message for successful validation with password strength STRONG](regexp_hard.png)

## Changelog
### v0.01
1. Built the user interface
2. Added validator functions for email and phone numbers
3. Added checking functions for empty strings

### v0.02
1. Added warning message boxes for failed validations
2. Added validator functions for first name, last name and security PIN
3. Made initial commit on Github

### v0.03
1. Replaced warning messages with information messages
2. Added warning messages for empty strings
3. Added length constraints for first name and last name

### v0.04
1. Provided masking for password and security PIN fields
2. Added length constraints for phone number and security PIN
3. Fixed tab shifting order of fields in GUI

### v0.05
1. Added password strength evaluator function for WEAK and MEDIUM strengths
2. Added password strength message in successful input
3. Added clear buttons for all the fields

### v0.06 (Current)
1. Fixed password strength evaluator function for HARD strength
2. Performed codebase cleanup for unnecessary dependencies
3. Optimise codebase for quick launch and speed

### v0.07 (Oncoming)
_To be decided_

## Bugs
1. **[FIXED ON 10th Nov 2019, 23:02]** Password strength HARD __cannot__ be achieved as of 4th Nov 2019 (v0.05)

## Contribute
Clone, add, build and make a PR. You know the drill.