regexp = Regexp.new(ARGV[0]) match_index = (ARGV[1] || 1).to_i ...
Ruby Print out the Regex Capture
by DougBTX,
November 05, 2007 02:08,
2 refactorings
My aim: Print out the regex...
regexp = Regexp.new(ARGV[0]) match_index = (ARGV[1] || 1).to_i ...
My aim: Print out the regex...
Magic, using a variant of: