I tried a couple of other links like [Regex Match all characters between two strings](https://stackoverflow.com/questions/6109882/regex-match-all-characters-between-two-strings) and [Regex get all content between two characters](https://stackoverflow.com/questions/19836706/regex-get-all-content-between-two-characters)
but they don't seem to fit this use case.

I want to get all the names, potato and tomato. Eg, from `|` to `>`. 

```
text = "with <@U0D08NR3|potato> and <@U1698M96|tomato> please"

```

`text.scan((?<=|).*?(?=>))` doesnt seem to work either..

Please guide me regex gods.