Return the receiving String as a Regexp.
45 46 47
# File 'lib/arrow/monkeypatches.rb', line 45 def to_re( casefold=false, extended=false ) return Regexp.new( self.dup ) end