original_string: protected function pregQuote($value, $delimiter = '/')
      {
          if (is_array($value) || is_object($value)) {
              foreach ($value as &$_value) {
                  $_value = $this->pregQuote($_value, $delimiter);
              } // unset($_value); // Housekeeping.
              return $value;
          }
          return preg_quote((string) $value, (string) $delimiter);
      }
code: protected function pregQuote($value, $delimiter = '/')
      {
          if (is_array($value) || is_object($value)) {
              foreach ($value as &$_value) {
                  $_value = $this->pregQuote($_value, $delimiter);
              } // unset($_value); // Housekeeping.
              return $value;
          }
          return preg_quote((string) $value, (string) $delimiter);
      }
code_tokens: protected function pregQuote ( $ value , $ delimiter = '/' ) { if ( is_array ( $ value ) || is_object ( $ value ) ) { foreach ( $ value as & $ _value ) { $ _value = $ this -> pregQuote ( $ _value , $ delimiter ) ; } // unset($_value); // Housekeeping. return $ value ; } return preg_quote ( ( string ) $ value , ( string ) $ delimiter ) ; }
docstring: Escapes regex special chars deeply.
  
  @since 140417 Initial release.
  
  @param mixed  $value     Input value.
  @param string $delimiter Delimiter.
  
  @return string|array|object Escaped string, array, object.
docstring_tokens: Escapes regex special chars deeply .