User input more or less works

Text in, graph comes out.
But I'm seven RegExp's in.
I'll regret this later.