hammadsaedi / regex-pro

Regex Pro is a regular expression tester. It allows you to test your regular expressions against a string of your choice.
https://hammadsaedi.github.io/regex-pro/
MIT License
6 stars 17 forks source link

Implement the regular expression pattern for Zip Code Validation #10

Open hammadsaedi opened 1 year ago

hammadsaedi commented 1 year ago

Background: Zip code validation is an essential part of many applications, ensuring accurate location data. We want to add zip code validation functionality to our Regex Pro project, allowing users to validate zip codes using regular expressions.

Task: Your task is to implement the regular expression pattern for zip code validation. Here are the requirements for this task:

  1. Implement the regular expression pattern for credit card validation.
  2. Add regular expression in validationForms in pages.js

Additional Information:

Getting Started:

  1. Fork this repository to your GitHub account.
  2. Create a new branch for this task.
  3. Implement the changes as described.
  4. Commit your changes and push them to your fork.
  5. Open a pull request to this repository.

Additional Notes:

We look forward to your contribution! 😄

aliabbas217 commented 1 year ago

Zip code patterns are different for different countries. Some have a very specific pattern than others, some involve alphabets as well, and there is also a difference in the length(no. of characters).

hammadsaedi commented 1 year ago

We can restrict to US based Zip Code 🤙

Jilesh980 commented 12 months ago

hi @hammadsaedi, can i work on this issue and please let me know on which country based you want to setup the validation for zip code. Thank you