Skip to content

Instantly share code, notes, and snippets.

@yesmeck
Created January 11, 2014 08:49
Show Gist options
  • Save yesmeck/8368551 to your computer and use it in GitHub Desktop.
Save yesmeck/8368551 to your computer and use it in GitHub Desktop.
[2] pry(main)> "鬼入鏡:詛咒-2D中文版 (Walking With Dinosaurs-2D Digital Chinese ver.) (普遍級)".match /(.+?)-(.+?)\s\(.+?\)\s\((.+)\)/
=> #<MatchData
"鬼入鏡:詛咒-2D中文版 (Walking With Dinosaurs-2D Digital Chinese ver.) (普遍級)"
1:"鬼入鏡:詛咒"
2:"2D中文版"
3:"普遍級">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment