Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
Well done!
You have completed (UPI) Chapter 6: Navigating with HTML Links and Structuring Data with Tables!
Instruction
Writing Regular Expressions for Common Patterns
Below are some common regular expressions used for form validation, along with explanations of their patterns.
Regular Expressions for Common Inputs
Field | Regular Expression | Explanation |
---|---|---|
Password | [a-zA-Z0-9]{6,} |
Alphanumeric password with at least 6 characters. |
Zip Code | \d{5}(-\d{4})? |
Allows 5-digit codes (12345 ) or 9-dig... |