I'm a newbie developing my second project in Ruby on Rails: A graphic calculator.
I'm using octave to evaluate the expressions. I'm already able to evaluate them and grab the output to a string, but it comes as "ans = 48", for example. I need to get rid of the "ans = " from the string, but I can't find anything about parsing strings that would be helpful for my case. Most of the articles are talking about HTML or URL parsing. In visual basic there were parsing functions like left(), mid() and right().
Is there any equivalent for ruby?
MK