in reply to Re^2: Regexp matched part to lower case
in thread Regexp matched part to lower case

Here \ is a special character before @ so you have to escape it by \\.

Then do slight change in replacement part.

/"<idl package=\"".lc($1)."\" name=\"$3\" anker=\"$4\"\/>"/esi;

updated

Prasad