The rewriter really isn't css specific
Replace regexp with libpcre