Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
.NET 7.0 (C#)

@"
^(?<!\d)\d{7}(?!\d)
"
gm

Description

  • Length must be 7 digits
  • Every character must be an integer
Submitted by Abhi Reddy - 2 years ago (Last modified 2 years ago)