genlang: Remove unused subs. Use precompiled regex in parsetarget(). Minor tweek...