DDG: fix code handling, remove regex parsing