[thelist] ie JS array limitations?
Lee Kowalkowski
lee.kowalkowski at googlemail.com
Sat Nov 1 06:01:47 CDT 2008
2008/10/31 Brian Cummiskey <Brian at hondaswap.com>:
> var re = new RegExp(/^(\d){1,2}(\s){3}(\d){1,2}$/);
>
> Something weird in there... not sure what I did.
Possibly because you're passing in a RegEx literal into a RegEx
constructor. I don't know if it hurts, but you certainly didn't need
to do that, just:
var re = /^(\d){1,2}(\s){3}(\d){1,2}$/;
--
Lee
More information about the thelist
mailing list