# File scanf.rb, line 224
    def initialize(str)
      @specs = []
      s = str.to_s
      return unless /\S/.match(s)
      @specs.replace s.scan(REGEX).map {|spec| FormatSpecifier.new(spec) }
    end