I am trying to set a variable with a value pulled from a managed metadata field.
The problem I am having is that the value returned is in the following format: TermName|TermGUID.
I only need the TermName so need to use regular expression to remove the GUID but I am not able to figure out how to do this.