Forums - C# Corner

Forum guidelines
Anand N

Anand N

  • 1.3k
  • 19
  • 20.4k

Regular Expressions

Apr 10 2013 12:45 AM
Hi,



Can you please explain me this regular expression?

(?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9]{8,10})$


[a-zA-Z0-9]{8,10} means any alphabets or digits 8 to 10 characters.

but

(?!^[0-9]*$) or  (?!^[a-zA-Z]*$)  what are these expressions?


Thanks in advance
Anand

Answers (1)

techbash 2016

SPONSORED BY

File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!