crazycoder
09-17-2008, 08:24 PM
Anyone have a good way to do this:
I need to split a string that looks something like this:
Text text text {1:more text} Some more text {2:hi} blah blah {$1} blah {$2} o and also {3} blah blah
into an array that ends up looking like this:
["Text text text ", "{1:more text}", " Some more text ", "{2:hi}", " blah blah ", "{$1}", " blah ", "{$2}", " o and also ", "{3}", " blah blah"]
I need to split a string that looks something like this:
Text text text {1:more text} Some more text {2:hi} blah blah {$1} blah {$2} o and also {3} blah blah
into an array that ends up looking like this:
["Text text text ", "{1:more text}", " Some more text ", "{2:hi}", " blah blah ", "{$1}", " blah ", "{$2}", " o and also ", "{3}", " blah blah"]