Thursday, 22 August 2013

How to set repeat regular expression?

How to set repeat regular expression?

I have regular expression ^\d{5}$|^\d{5}-\d{4}*$" it checked US zip. But I
need check "zip, zip, zip" how to do this?
I tried this ^(\d{5}$|^\d{5}-\d{4},)*$ but it not work

No comments:

Post a Comment