session1 is linking Social Post record to a session using Session_Hashtag__c field on session record.
Hashtag that begins with "score" will be used to store the score in Session_Score_c on social post record. Recommended approach: fetch all following characters after word "score" until either space char or special (!, #, :. ;...) char is reached, remove all alpha and "" and that leaves the score.
Example: Great session! #session1 #score_5
session1 is linking Social Post record to a session using Session_Hashtag__c field on session record.
Hashtag that begins with "score" will be used to store the score in Session_Score_c on social post record. Recommended approach: fetch all following characters after word "score" until either space char or special (!, #, :. ;...) char is reached, remove all alpha and "" and that leaves the score.