method

escape_re

Importance_1
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.