tuxcoder
02-02-2007, 12:25 PM
Hello
I have this string:
var Aussage = '{"48":["day":4]}{"49":[ "day":4]}';
Whit indexOf i search the Position for the String 48
var Suche = Aussage.indexOf("48");
Now i want search the char { from the left of 48 and } from the right and delete all chars between.
How can i do this??
I have this string:
var Aussage = '{"48":["day":4]}{"49":[ "day":4]}';
Whit indexOf i search the Position for the String 48
var Suche = Aussage.indexOf("48");
Now i want search the char { from the left of 48 and } from the right and delete all chars between.
How can i do this??