in reply to Problem with Regex
perl -e '$tag = "text"; while(<>) {print if(/<$tag/ .. m!</$tag!)}' fi +le.txt [download]
<text xml:space="preserve">some Text ... ......... ..................... ..................... .....................</text> [download]