Generating hints regex.