Skip to content

Instantly share code, notes, and snippets.

@masui
Created May 18, 2012 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masui/2725277 to your computer and use it in GitHub Desktop.
Save masui/2725277 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 're_expand'
'(1|2|3|4)*'.expand(' 222 ',1) { |a|
puts a[0]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment