the phrase:
a quick~brown fox~jumped over
I'd like to retrive the first words before the ~
the second phrase between the ~
and the last words after the last ~
I got the first one working with s/\~(.*)//g
but the rest are beyond me.
I thought this might work for the second s/\^(.*)~// but no go.
Many thanks for any help!