How do those not work? How does $string look before and after, and what would you have expected?
What do you escape it for? (shell? SQL? some other target language?)
In reply to Re: Escaping single quote in $string
by moritz
in thread Escaping single quote in $string
by calebcall
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |