Decimal to binary
Write a function that takes a string and replaces all occurrences of numbers with their decimal form.
(d->b "I have 2 arms.") ;=> "I have 10 arms." (d->b "That costs 3 dollars. But I only have 1 dollar.") ;=> "That costs 11 dollars. But I only have 1 dollar." (d->b "I was born in 1981.") ;=> "I was born in 11110111101."
Any contiguous string of digits is a number. That means that spaces, periods, and commas separate numbers instead of indicating differnt parts. For instance, 2,000 is the number 2 followed by the number 000.
Please submit your solutions as comments on this gist.