module Pathutil::Helpers
class Pathutil
pathutil
0.16.2
# to_regexp
def to_regexp(guard: true) Regexp.new((guard ? "\\A" : "") + Regexp.escape( self )) end