dimanche 22 septembre 2019

Regular Expression in java aboute a number(like phone number starting 021 and then two repeated number)?

Regular Expression in java about a number(like phone number starting 021 and then two repeated number) for totally eleven digits, for example:

 02177890488
 or
 02177098765 
 or 
 02199123450

pls help me,

i tried this:

^[0][2][1][1-9]\\1[0-9]{6}$

but does not work:(

Aucun commentaire:

Enregistrer un commentaire