Split or Extract a Metadata on the left side with a Regex

  • 19 January 2021
  • 2 replies
  • 14 views

Hello together,

 

I have the problem that I retrieve values from a managed metadata field. It looks like

value | adgfbn-fjkdjfkd-fkdslk

I want to extract only the left value via Regex. I tried several things. I put the pattern to [|] or [|]

 

But so far no success. Could you help me with this!

 

Best regards

 

Matthias


2 replies

Userlevel 6
Badge +22
Hi,

Regex will be
^w*
Badge +9

Use extract with following regular expression: ^.*(?= | )


 






Reply