regexmatch.dev
Explore
Open main menu
Save & Share
Facebook
Twitter
Tumblr
E-Mail
Pinterest
LinkedIn
Reddit
US Zip Code
Published on Tue Mar 01 2022
This pattern matches the US Postal Code format and captures the seperate parts; basic and +4.
Regex
Test String
90210-1234
Additional matching regexes for
US Zip Code
US Zip Code
This pattern matches the US Postal Code format and captures the seperate parts; basic and +4.
php naming convension (classes, vars, functions, constants)
PHP Basic coding standard Naming Convension pattern: /^[\pL_][\pL_\pNd]*$/
facebook post embed code
This pattern matches to the facebook post embed codes. It matches on each parts of the whole embed code individualy, and matches on the complete embed code either.
Validate Argentinian postal code
Validates CPA (Código Postal Argentino, spanish for Argentinian Postal Code).
facebook post embed code
This pattern matches to the facebook post embed codes. It matches on each parts of the whole embed code individualy, and matches on the complete embed code either, but it requires minimum a fb-post div.
Basic Phone Number Matching
Basic Phone Number Matching
CEDICT Chinese dictionary line parts
Matches the four parts (simplified, traditional, pinyin, definition) of a CEDICT dictionary line
CFF-definitions.reference.isbn
Pattern for validating a `definitions.reference.isbn` value in the Citation File Format (CFF)
Validates argentinian postal code
Validates the two valid postal codes in Argentina
Apache/Nginx Logs parsing
Log Format - combined + cookie at the end. Pattern Desc - combined for all groups.