Regular Expression

  • Thread starter Thread starter Etu
  • Start date Start date
E

Etu

Hellow all,

Could someone please help? I need a regular expression for evoluating
if a string contains at least three letters (a-z or A-Z)or more in
sequence, that is, I need a true result for these strings:

8329abc48*(39jk0
^^^ <-three letters
@()jfsd483%@
^^^^ <-four letters
fjakdsl849302jfalkd
^^^^^^^ ^^^^^^ <-many letters

and a false result for these strings:
4839&*#gb08
^^ <-two letters

Thanks a lot,

Etu
 
Hi,

Should be something like

string re = @"[a-zA-Z]{3}"; // Consult MSDN for the exact syntax of the
quantifier - not sure how to specify a single value.
 
Back
Top