in reply to Re: Convert a string in his pattern equivalence
in thread Convert a string in his pattern equivalence

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\]\)

Replies are listed 'Best First'.
Re^3: Convert a string in his pattern equivalence
by ccdoub (Initiate) on Sep 20, 2010 at 23:51 UTC
    Yes, you had already said it, I kind of just follow the link :P Thx again.