improve regex matching in crawler