Thanks, that was the function: "quotemeta".
And in a example,
$old = "(hola[amigo])"; $new = quotemeta($old); print "$old turns to $new";
Prints,
(hola[amigo]) turns to \(hola\[amigo\]\)In reply to Re^2: Convert a string in his pattern equivalence
by ccdoub
in thread Convert a string in his pattern equivalence
by ccdoub
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |