# File lib/rack/mount/vendor/regin/regin/character.rb, line 29
    def to_regexp(anchored = false)
      re = to_s(true)
      re = "\\A#{re}\\Z" if anchored
      Regexp.compile(re, ignorecase)
    end