while (<>) { s/__FUNCTION__\s+"\s*(.*?)"/"%s $1",__FUNCTION__/; print; }