RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details SSN
Expression
Get-ChildItem -rec -exclude *.exe,*.dll |select-string "\b(?!000)(?!666)(?!9)[0-9]{3}[ |-]*[ -]?(?!00)[0-9]{2}[ |-]*[ -]?(?!0000)[0-9]{4}\b|[0-9]{3}[-| ][0-9]{2}[-| ][0-9]{4}"
Description
Social Security Search
Matches
AAA-GG-SSSS, AAA GG SSSS, AAA-GG SSSS, AAA GG-SSSS, AAAGGSSSS, AAA-GGSSSS, AAAGG-SSSS, AAAGG SSSS or AAA GGSSSS
Non-Matches
000123456, 666123456, 912345678, 123004567, 12345000
Author Rating: Not yet rated. Jamil Salomon
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials