Q
qoexcel
Hi Everyone,i want to get integer from string, something like this:
<Loading DOM finished: 41 ms>
using command /\d+/.match(self.loadDOMstat)
, but actually i don't have integer, i have MatchData .
How can i convert MatchData to integer in Ruby?Moreover you can give me a hint, how to get number from this string..
Thank you in advance!!!
<Loading DOM finished: 41 ms>
using command /\d+/.match(self.loadDOMstat)
, but actually i don't have integer, i have MatchData .
How can i convert MatchData to integer in Ruby?Moreover you can give me a hint, how to get number from this string..
Thank you in advance!!!