You could use this GREP expression to select the first phrase:
Let's have a look at the individual parts of the expression.
This searches for Any Character . repeated One or More Times +.
This is a Positive Lookahead which searches for text that comes before a space followed by a vertical bar \|. We need to unescape the | with a \ ...