method

escape_re

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: CSV
escape_re(str) private

This method is an encoding safe version of Regexp::escape(). It will escape any characters that would change the meaning of a regular expression in the encoding of str. Regular expression characters that cannot be transcoded to the target encoding will be skipped and no escaping will be performed if a backslash cannot be transcoded.

Show source
Register or log in to add new notes.