reg ex help ...

wxdqz

New Member
I want to split a string of numbers into an array of four characters each...
This is what i did:

<SCRIPT LANGUAGE="JavaScript">
<!--
str="49384389749848748234343343433"
re = new RegExp("[0-9]{1,4}", "g");
alert(str.split(re))
//-->
</SCRIPT>


returns nothing :(

Any feedback ???
 
Back
Top