We have a string: "<b><c><d><e>
"
And this Regexp: /<(\w开发者_运维百科+)>/i
How can I get ALL of the matches from current string?
"<b><c><d><e>".scan(/<(\w+)>/)
See scan on ruby-docs
We have a string: "<b><c><d><e>
"
And this Regexp: /<(\w开发者_运维百科+)>/i
How can I get ALL of the matches from current string?
"<b><c><d><e>".scan(/<(\w+)>/)
See scan on ruby-docs
精彩评论