-
-
Save anonymous/c0cdae059aad3060bd50 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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