reimplement web copying to avoid hosing portal css during corpus build
fix perl regexp delimiter bug