Regular Expressions 101

Sponsors

Library entries

9 Digit SSN String

Vote

1

Regular Expression
java

"
.*\b((?:(?!666|000)[0-8][0-9_]{2}[.-]?(?!00)[0-9_]{2}[.-]?(?!0000)[0-9_]{4}|[0-9]{9}))\b.*
"
gm

Description

Loading markdown...
Submitted by loganmcampbell - 4 months ago