Skip to main content
Honey Faye 님이 #Formulas에 질문했습니다

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개
  1. 2024년 3월 22일 오후 10: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