# File lib/facets/core/string/to_re.rb, line 10
  def to_re(esc=true)
    Regexp.new((esc ? Regexp.escape(self) : self))
  end