public/wordpress/wp-content/plugins/backupbuddy/classes/restore.php
/*	_preg_escape_back()
	 *	
	 *	Escape backreferences from string for use with regex. Used by migrate_wp_config().
	 *	@see migrate_wp_config()
	 *	
	 *	@param		string		$string		String to escape.
	 *	@return		string					Escaped string.
	 */


Escape backreferences from string for use with regex.

@param          string          $string         String to escape.
@return         string                                  Escaped string.
Escape backreferences from string for use with regex . @param string $string String to escape . @return string Escaped string .
function _preg_escape_back($string) {
		$string = preg_replace('#(?<!\\\\)(\\$|\\\\)#', '\\\\$1', $string);
		$string = str_replace( "'", "\'", $string );
		return $string;
	}
function _preg_escape_back ( $ string ) { $ string = preg_replace ( '#(?<!\\\\)(\\$|\\\\)#' , '\\\\$1' , $ string ) ; $ string = str_replace ( " ' " , " \' " , $ string ) ; return $ string ; }
_preg_escape_back()
_preg_escape_back ()
// Replace $ with \$, \ with \\, and ' with \'