even better context regex generation