How to get the text between two tokens, excluding the tokens themselves?

Have a string where a few times you can use markers flanking the text (not tags). You need to get the text between pairs of markers (not greedily). Naguglennye examples for tags failed because on line few pairs of markers.

String example:
1~#of gisclareny#pipechat the document "Invoice for payment to buyer" without captivity document "Account to pay picopsu" no supchik~2~1~2

Regular expression:
EN(.+?)EN

Finds:
hishataki
pipechat of the document "Invoice for payment to buyer" without chapchi

You need to:
Account
The printing of the document "Invoice for payment to buyer" without a hat

https://regexr.com/3hv91
June 10th 19 at 15:33
1 answer
June 10th 19 at 15:35

Find more questions by tags Regular expressions