Delphi2010: how to split string in an array and then save them to a new array?
Posted on 2010-11-18
say there is array A contains following value:
A = "[ 0 ] yy(z)"
A[1 ] = "[ 1 ] yyy(zz)"
A[ 2 ]="[ 12 ] yy(zz)"
A[ 2 ]="[ 123 ] yy(zzz)"
the format of the string are: [ number ]String(String)
the length is flexible.
how could i get all number of this array and save these numbers into a new array?