Skip to main content
Hi Experts

I am looking to set a Regex syntax for one of my custom field which looks like this "df976353-c0dd-448e-a989-443a4b889442".

I am using below syntax, but getting error :

!REGEX(Customer_ID__c, "\b[0-9a-f]{8}\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\b[0-9a-f]{12}\b")

Any help on correcting this would be greately appreciated..!!

Thanks

Rohan
2 answers
  1. Feb 3, 2022, 10:41 AM
    Hi Ronu,

    Can you check if this formula works.

     

    !REGEX(Customer_Id__c, "\\b[0-9a-f]{8}\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\b[0-9a-f]{12}\\b")

    If this solution helps, Please mark it as best solution.

    Thanks,

     
0/9000