
February 11th, 2009, 12:45 PM
|
|
Registered User
|
|
Join Date: Feb 2009
Posts: 1
Time spent in forums: 6 m 6 sec
Reputation Power: 0
|
|
|
Help with creating a regex
hi all, I am in need of a regex to parse a few strings for a script i'm writing in PHP.
My data looks like this (it will be in a string)
Code:
var talentsTreeArray=new Array;
talentsTreeArray[0]=[1, 50, "example1"];
talentsTreeArray[1]=[2, 19, "example2"];
talentsTreeArray[2]=[3, 0, "example3"];
I need to extract the 2nd number (50,19, and 0) and the string in the quotes.
thanks in advance! 
|