Simplify rain detection using regex.