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.
Activity
ParadoxV5 commentedon Aug 20, 2020
Friendly reminder:
String#matchoutputs aMatchDatawhileString#scanoutputs anArray.AlexWayfer commentedon Aug 20, 2020
Yes, but they're similar, but an outside code will be different for the same input data (
StringandRegexp). But the point of comparison of these approaches is they complete the similar goal.mateusdeap commentedon Nov 7, 2022
@AlexWayfer If you're still interested in this, feel free to open a PR. All you need to do is follow the guidelines in the CONTRIBUTING.md.