Inverse of preg_quote in PHP
I need to write a function that does exactly opposite of preg_quote function. Simply removing all  '\'  did not work because there can be a '\' in the string.

Example;

    inverse_preg_quote('an\\y s\.tri\*ng') //this should return "an\y s.tri*ng" 

or you can test as

    inverse_preg_quote(preg_quote($string)) //$string shouldn't change
Inverse of preg_quote in PHP
===

I need to write a function that does exactly opposite of preg_quote function. Simply removing all  '\'  did not work because there can be a '\' in the string.

Example;

    inverse_preg_quote('an\\y s\.tri\*ng') //this should return "an\y s.tri*ng" 

or you can test as

    inverse_preg_quote(preg_quote($string)) //$string shouldn't change