You anchor at the front and end to say that the whole string must match the pattern. You group and quantify to indicate repetitions./^[0-9]+(?:,[0-9]+)*$/;
In reply to Re: Regex an Array?
by Roy Johnson
in thread Regex an Array?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |