Get Specific text from String

Mate,

Please see this string “PO Closure | PO Number MGAG342”

I want after PO Closure | PO Number.

Your expression is not helping in this specific case, Hello | ID i gave for example only.

I want to remove above specific str.