Hi, You're looking for JavaScript's String#split method: http://www.w3schools.com/jsref/jsref_split.asp
Hope this helps, -- T.J. Crowder tj / crowder software / com On Jun 23, 10:06 am, elduderino <[EMAIL PROTECTED]> wrote: > Hi, I have a string of numbers that i'm turning in to an array with > $A, like so: > > var string = '12345678910'; > var arr = $A(string); > > Problem is i need to deal with double figures, so in the example the > problem comes when you get to 10 because $A just splits on every > character so i get > 1,2,3,4,5,6,7,8,1,0 where i really want 1,2,3,4,5,6,7,8,9,10. > > So is there any way i can specify something to split the string > on....like if i had 1*2*3*4*5*6*7*8*9*10 and then split it on the > *??? > > Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
