M
Martin Arvidsson, Visual Systems AB
Hi!
I have a string containing this information:
Including file: Myfile.fle (C:\Program
Files\Application\Source\Myfile.fle)
After myfile.fle there are three spaces!
Since i use the folowing:
string[] splitted = unsplittedString.split(new char[]{' '})
The splitted string is outputed like this ofcourse:
Including
file:
Myfile.fle
(C:\Program
Files\Application\Source\Myfile.fle)
which is correct. BUT, now for the tricky part.
I only want to split if there is only ONE space and i dont want to split
anything between the ( and )
so basicly i want this output:
Including
file:
Myfile.fle
(C:\Program Files\Application\Source\Myfile.fle)
Any ideas you geniouses out there
/Martin
I have a string containing this information:
Including file: Myfile.fle (C:\Program
Files\Application\Source\Myfile.fle)
After myfile.fle there are three spaces!
Since i use the folowing:
string[] splitted = unsplittedString.split(new char[]{' '})
The splitted string is outputed like this ofcourse:
Including
file:
Myfile.fle
(C:\Program
Files\Application\Source\Myfile.fle)
which is correct. BUT, now for the tricky part.
I only want to split if there is only ONE space and i dont want to split
anything between the ( and )
so basicly i want this output:
Including
file:
Myfile.fle
(C:\Program Files\Application\Source\Myfile.fle)
Any ideas you geniouses out there

/Martin