You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Friendly reminder: String#match outputs a MatchData while String#scan outputs an Array.
Yes, but they're similar, but an outside code will be different for the same input data (String and Regexp). But the point of comparison of these approaches is they complete the similar goal.
Hello.
These methods are pretty similar.
I've done some benchmarks and figured out that
match
is twice faster thanscan
.I can try to make a PR, but not sure do we need for it here.
The text was updated successfully, but these errors were encountered: