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!