Update calc.rb

Changed the regex to permit modulo "%" and exp "^"