Hi
I'm trying to extract certain parts of each line of a text file.
An example of the lines is as such:
[text] [number]
[text] [number]
[text] [number]
...And so on.
I would like the text and number from each line as a separate element in an array of strings.
So for example, the array could be {"text number", "text number", "text number"}
I could easily do this using the .Split() function or something similar, but the problem is i do not want the '[' and '[' included in the strings.
Further complicating the matter, the text can also contain ''. For example:
[text]more[text] [1234567]
[textmore[text] [7654321]
...etc.
Sorry if I'm being unclear as to what I am trying to achieve...Any help would be greatly appreciated.
Thanks in advance!