with_delimiter (Numeric::Transformer)

    # File lib/merb-helpers/core_ext/numeric.rb, line 143
        def self.with_delimiter(number, format_name = nil, options = {})

          format = (formats[format_name] || default_format)[:number].merge(options)

          begin
            parts = number.to_s.split('.')
            parts[0].gsub!(/(\d)(?=(\d\d\d)+(?!\d))/, "\\1#{format[:delimiter]}")
            parts.join(format[:separator])
          rescue
            number
          end
        end