Split string on one use of a word and not the other : <p>fairly novice here, I'm looking for an effective way to use split() to split a string after a certain word. 
I'm working on a voice controlled filter using the Csound API in python, and say my input command is "Set cutoff to 440", I'd like to split the string after the word "to", basically meaning that I can say the command however I like and it'll still find my frequency I'm looking for, I hope that makes sense. 
So at the moment, my code for this is</p>

<pre><code>string = "set cutoff to 440"
split = string.split("to")
print(split)
</code></pre>

<p>and my output is</p>

<pre><code>['set', 'cu', 'ff', '440']
</code></pre>

<p>The problem is the 'to' in 'cutoff', I know I could fix this by just changing cutoff to frequency but it seems like giving in too easily. My suspicion is there's a way to do this with regular expressions, but I could easily be wrong, any advice would be really helpful, and I hope my post adhered to all the guidelines and stuff, am pretty new to Stack Overflow. </p>
