Skip to main content
added 69 characters in body
Source Link
Jordan
  • 10.1k
  • 1
  • 31
  • 47

Ruby -n, 2723 bytes

Based on Ventero’s answer here.

p$_p eval$_.scan(/\d+/).sum(&:to_i)*?+

Attempt This Online!Attempt This Online!

Ruby -n, 27 bytes

p$_.scan(/\d+/).sum(&:to_i)

Attempt This Online!

Ruby -n, 23 bytes

Based on Ventero’s answer here.

p eval$_.scan(/\d+/)*?+

Attempt This Online!

Source Link
Jordan
  • 10.1k
  • 1
  • 31
  • 47

Ruby -n, 27 bytes

p$_.scan(/\d+/).sum(&:to_i)

Attempt This Online!