$a =~ s/\'/\\\'/g; [download]
In reply to Re: Re: Irregular Expression?? by mutated in thread Irregular Expression?? by Red_Dragon