I'm parsing this line-
0386 ; Greek # L& GREEK CAPITAL LETTER ALPHA WITH TONOS
Basically, I need -
point = 0386
script = Greek
And I'm doing it like this,
point = line.split(";")[0].replace(" ","")
script = line.split("#")[0].split(";")[1].replace(" ","")
I'm not convinced that what I'm doing is the most pythonic way of doing it, is there a more elegant way of doing this? Maybe a regex one-liner?