Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'pp'
- text = "\"LOST>: Dr. Marvin Candle<279><STEAM_0:0:148111><Blue>\" say \"Good luck, get Tila Tiequila.\""
- regexp = /\"(.+)<(\d+)><(.+)><(Red|Blue)>\" (.+) \"(.+)\"/
- arr = text.scan(regexp)
- pp arr
Add Comment
Please, Sign In to add comment