Skip to content

Instantly share code, notes, and snippets.

Created April 27, 2013 21:31
Show Gist options
  • Save anonymous/c0cdae059aad3060bd50 to your computer and use it in GitHub Desktop.
Save anonymous/c0cdae059aad3060bd50 to your computer and use it in GitHub Desktop.
currexp = (ARGV[0]).gsub(/\s/, '')
def myCalc (currexp
while currexp =~ /\D/
if currexp =~ (/\(.*\)/)
currexp = currexp.scan(/\((.*)\)/)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment