method

regexp

regexp(key, icase)
public

No documentation available.

# File lib/optparse.rb, line 225
    def self.regexp(key, icase)
      Regexp.new('\A' + Regexp.quote(key).gsub(/\w+\b/, '\&\w*'), icase)
    end