Posted By

hejaaa on 12/09/10


Tagged

psc


Versions (?)

check psc


 / Published in: ActionScript 3
 

  1. var r:RegExp = /\d{3} \d{2}|\d{5}/;
  2.  
  3. trace(r.test("966 01")); // true
  4. trace(r.test("96601")); // true
  5. trace(r.test("96 601")); // false

Report this snippet  

You need to login to post a comment.