Regular Expression to remove GUID

  • 4 December 2017
  • 3 replies
  • 2 views

Badge +1

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.


3 replies

Userlevel 3
Badge +12

Hi, 

Is the requirement is with Forms or Workflows (On-Premise or Ofifce 365)?

Thanks,
Krishna.

Badge +1

Hi Krishna,

It is a workflow On-Premise requirement.

Thanks,

Matthew

Badge +9

Use the Regular expression action:

211251_pastedImage_1.png

Operation: Replace text

Pattern: |.*

Replacement text is empty

Reply