I would like to find all possible occurrences of text enclosed between two ~s.
~
For example: For the text ~*_abc~xyz~ ~123~, I want the foll
~*_abc~xyz~ ~123~
Try this [^~\s]*
[^~\s]*
This pattern doesn't consider the characters ~ and space (refered to as \s).
\s
I have tested it, it works on your string, here's the demo.