I have a database containing folders with files. I manage to read the files and get specific lines containing the montage word...
montage = 0, FP1-F7: EEG FP1-REF -- EEG F7-REF
montage = 1, F7-T3: EEG F7-REF -- EEG T3-REF
montage = 2, T3-T5: EEG T3-REF -- EEG T5-REF
montage = 3, T5-O1: EEG T5-REF -- EEG O1-REF
Now, I want to be able to extract what is between the comma and the double point (i.e. FP1-F7, F7-T3,...) but I don't know how to do ?
Moreover, why does the print command display lines with a "space" between (not shown below but real) ?
printappends a newline at the end by default, if you have a\nin your string, you'll have an empty line after the printed one.