Social Security Number (SSN)

Published on Tue Mar 01 2022

tests for valid social security numbers according to the social security administration. more specifically: -disallows a group to have all 0s -disallows first group to have all 6s -disallows a ssn to begin with 9 note that this does not test for issued ssn's. that would be impossible to implement here, because the high group document is continuously updated on a monthly basis.

Additional matching regexes for
Social Security Number (SSN)

Social Security Number (SSN)

tests for valid social security numbers according to the social security administration. more specifically: -disallows a group to have all 0s -disallows first group to have all 6s -disallows a ssn to begin with 9 note that this does not test for issued ssn's. that would be impossible to implement here, because the high group document is continuously updated on a monthly basis.

Floating Point

Tests a floating point number

Asset Market

Asset market/exchange tests

Better version of UK postcode

This UK postcode regex will match all variants of postcode formats including inner London postcodes (eg SW1A), with optional space (both AL11XP and AL1 1XP are valid) It will reject any postcode that does not specify a valid postcode area. Each part of the postcode is also captured into a capture group as follows: group 1: POSTCODE AREA group 2: POSTCODE DISTRICT group 3: POSTCODE SECTOR group 4: POSTCODE UNIT

french phone number + match right part

Matches french numbers (not special numbers like 115, 18). First matching group contains the right part without prefix (0, +33, 33, 033, or 0033).

RFC 3936

Parses URIs according to RFC3936

Secure HTTP Header: Public-Key-Pins

Check if HTTP Header of Public-Key-Pins has all nessery values for highest security

Replace second grouping with first

Identifies two groups, each group using a regex, then replaces group 2 with group 1.

URL domain test

tests to find if ("google.com") is the domain part of the URL

Regex for real number

this regex can detect any real number whether it is signed or unsigned.plus it can detect real number both with and without floating point aka '.'.the numbers should be decimal number