# File lib/rubypants.rb, line 220
  def self.n_of(n, x)
    x = Regexp.escape(x)
    /(?<!#{x})   # not preceded by x
     #{x}{#{n}}  # n of x
     (?!#{x})    # not followed by x
    /x
  end