Skip to main content

Hi - I need to reduce the following field value to the score value. In the example below, the remaining value should be "good". Regex examples would be greatly appreciated. 

Thank you for your help!

 

{score=good, id=number, comment=text, reason=text, reason_id=number}

 

 

#Formulas

1 respuesta
  1. 22 mar 2024, 22:15

    Hello @Honey Faye, with REGEX, in formula, you check that the filled in text respect a specific format. In your case, if you want to work within REGEX style, you will need to leverage Pattern.Compile() and Matcher.Find()/Group() methods.

    Otherwise you can leverage text manipulation formula (this one works if score is just before id) like for example :

    MID(Field__c,

    FIND("score",Field__c)+6,

    FIND("id",Field__c)-2-FIND("score",Field__c)-6

    )

    Eric