Start a new topic

Regular Expression to pull a specific word or string from a longer string

I recently had a client who needed to pull the words Honor or Memory from a string of text to put into an attribute and leave the value blank if those values didn't exist in the string.  So if the string was "I would like to give this gift in memory of John Smith" then the dictionary would return the value "Memory", and if it was "This gift is in honor of John Smith" it would return the value "Honor".  I thought others might have similar scenarios and might want to make use of the dictionary.



2 people have this question
Login or Signup to post a comment