| Title |
Test
Find
Pattern Title
|
| Expression |
^[A][Z](.?)[0-9]{4}$ |
| Description |
Expression to test for valid postcodes for azerbaijan |
| Matches |
AZ 1234 | AZ1234 |
| Non-Matches |
12 abcd | AB 1234 |
| Author |
Rating:
Matt Brooke
|
| Source |
|
| Your Rating |
|
Title: error in this regex
Name: Link
Date: 10/6/2023 7:46:35 PM
Comment:
. is used as a wildcard to match many symbols.
I guess here what you need is a space symbol (E.g., ^[A][Z]( ?)[0-9]{4}$
)