I'm trying to find strings that are surrounded by asterisks and pipelines, for example: *|FOO|*
, *|BAAAAAR|*
I already researched several other answers, but every time I combine asterisks with pipelines, it does not work. Can anyone help me?
And I need to find all the possibilities in a same text, for example:
Hello *|FOO|*, let's play with *|BAAAAAR|*
I need to find both '*|FOO|*'
and '*|BAAAAAR|*'
.