I'm trying to use Ruby to split to the right of a number.
For example: H2SO4
How do you do this?
I'd like to output ["H2", "SO4"]
x.split(/\d+/)
yields: ["H", "SO"]
x.split(//)
yields: ["H", "2", "S", "O", "4"]
Both cool but not exactly what I'm looking for.