Skip to content

Instantly share code, notes, and snippets.

@sergio1990
Created April 7, 2014 19:36
Show Gist options
  • Save sergio1990/10037175 to your computer and use it in GitHub Desktop.
Save sergio1990/10037175 to your computer and use it in GitHub Desktop.
Split event name for teams names
"Team 1 v Team-2".scan(/([\S\s]*)\s{1}[-|v]\s{1}([\S\s]*)/)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment