in reply to Re: Matching quoted variables. Cant make it work..
in thread Matching quoted variables. Cant make it work..

A previous suggestion to use

"\Q$a\E"

is the easiest way to avoid these kind of problems. If you want to inlclude a variable that may contain meta-characters, then \Q forces the escaping of meta-characters (i.e. puts '\' before each one). \E turns escaping off. Play with it.

Hope that helps.

Tom Melly, tom@tomandlu.co.uk