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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With