custom regex-based replacement in extracted markup