I have a string like this patern: "abcd abcd | abcde | Degree SP | xyz abcd | abcd ABC"
I need to extract "Degree SP" using regular expressions. How can I do that? The condition here are:
- string end with "SP "
- string start after last "|".
I'm trying the Google Sheet formula REGEXEXTRACT(<input string>, "[\|\s].+SR[\s\|]")
It returns " | abcde | Degree SP ". How can I restrict to extract from the last "|"?

