Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-06-22 20:32
Flavor·PCRE2 (PHP)

/
^(([0-9]{3})\.?([0-9]{3})\.?([0-9]{3})\-?([0-9]{2})([-])?)$
/
Open regex in editor

Description

Match 1: 123.465.789-00 Group 1: 123.465.789-00 Group 2: 123 Group 3: 456 Group 4: 789 Group 5: 00

Submitted by BAWB.io