i am having a problem when testing whether the expression matches or not
if( (/(D|T|X)\d{6,}/).test("D123456") //TRUE if( (/(D/T|X)\d{6,}/).test("T12345678") //TRUE
Can understand why this happening...
Aucun commentaire:
Enregistrer un commentaire