Regex for Postal and Phone Numbers
Key points
- Write a pattern
- Enter the text
- Check the count
Entering "\d{3}-\d{4}" in Regex Tester finds the shape of a postal code.
Steps
- Write a pattern
- Enter the text
- Check the count
"\d" is one digit and "{3}" means three times.
Use "Regex Tester" (free)
Tools that go well with this
- Compare Two Texts (Diff): Show the differences between two texts line by line.
- Character Counter (for Applications and Reports): Count characters, lines and manuscript sheets of your text.
- Remove Duplicate Lines and Sort a List: Remove duplicate lines and sort them.