AmazingMatthias

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

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

0 Kudos
Reply
2 Replies
SimonMuntz
Nintex Employee
Nintex Employee

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

Hi,

Regex will be
^\w*
0 Kudos
Reply
mlauer
Collaborator

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

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

 

grafik.png
0 Kudos
Reply