I need to split a text like:
//string
s = CS -135IntrotoComputingCS -154IntroToWonderLand...
in array like
inputarray[0]= CS -135 Intro to computing
inputarray[1]= CS -154 Intro to WonderLand
.
.
. and so on; I am trying something like this:
re.compile("[CS]+\s").split(s)
But it's just not ready to even break, even if I try something like
re.compile("[CS]").split(s)
If anyone can throw some light on this?
135IntrotoComputingCSto-135 Intro to computing? (Unless they are all in "intro to x" format which I don't think it is) Where are you getting this data? Maybe you can get it in a better format.