Guest User

Untitled

a guest
May 24th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. require 'pp'
  2.  
  3. text = "\"LOST>: Dr. Marvin Candle<279><STEAM_0:0:148111><Blue>\" say \"Good luck, get Tila Tiequila.\""
  4.  
  5. regexp = /\"(.+)<(\d+)><(.+)><(Red|Blue)>\" (.+) \"(.+)\"/
  6.  
  7. arr = text.scan(regexp)
  8.  
  9.  
  10. pp arr
Add Comment
Please, Sign In to add comment