extract starting and ending with a special character
Content from the file:
/genomes/date/pa341/abc.txt
/genomes/date/ha76870/xyz/a1.pdf
Result should be
/genomes/date/pa341/
/genomes/date/ha76870/xyz/
extract starting and ending with a special character
Content from the file:
/genomes/date/pa341/abc.txt
/genomes/date/ha76870/xyz/a1.pdf
Result should be
/genomes/date/pa341/
/genomes/date/ha76870/xyz/