@Arun Sankar JTo successfully extract the UETR from an email using RUTA, you need to ensure that your regular expressions correctly match the UETR format and that the syntax aligns with RUTA’s requirements. The UETR typically follows a UUID format, which is 36 characters long, including hyphens. Your first script almost captures this, but you should specify the exact pattern with hyphens in the right places. For example, the UETR pattern is usually [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}. Update your script to include the hyphens explicitly and ensure the case sensitivity if needed. Additionally, for the alphanumeric part, ensure that your regex matches exactly 8 characters by using {8} without the hyphen unless hyphens are part of the expected pattern. Here’s a corrected version:
CW{REGEXP(“[a-zA-Z0-9]{8}”) → MARK(EntityType, 1, 8)};
Make sure your email text is properly tokenized and that the scripts are applied in the correct order. Test the regex patterns separately to verify they match the intended UETR and alphanumeric strings. This should help your script correctly identify and extract the UETR from the email content.