Adding rules script with lagbot's regex magic