Hey
I have a problem that annoys me a lot....
i want to extract all titles and songnames within a file, a *.pls file to be exact.
ive read the entire file from beginning to end and ive splitted the text like so..
string[] titles = readpls.Split(new string[] { @"\n", "\\"}, StringSplitOptions.None);
where readpls is the file being read...
now it looks like this for example:
"al twisted and dj jfx feat vicky fee - turn it up.mp3\r\n#extinf:328,al twisted and jfx - raise the roof\r\n"
i want the result to only be the title or song.....namely "ai twisted" on titles and "turn it up" on songs....
would make another string array for songs also. Question is: how do i search for all titles and song names? Do i use regex to match a string/text or do i use indexOf/LastIndexOf to search for a char and the iterate until i get to another char?
Best regards
xorl