I have a file which has multiple quotes like the one below:
<verse-no>quote</verse-no>
<quote-verse>1:26,27 Man Created to Continually Develop</quote-verse>
<quote>When Adam came from the Creator’s hand, he bore, in his physical, mental, and
spiritual nature, a likeness to his Maker. “God created man in His own image”
(Genesis 1:27), and it was His purpose that the longer man lived the more fully
he should reveal this image—the more fully reflect the glory of the Creator. All
his faculties were capable of development; their capacity and vigor were
continually to increase. Ed 15
</quote>
I want to remove all strings from <quote-verse>.....</quote-verse>
line so that the end result will be <quote>1:26,27</quote>
.
I have tried perl -pi.bak -e 's#\D*$<\/quote-verse>#<\/quote-verse>#g' file.txt
This does nothing. I am a beginner in perl (self taught) with less than 10 days experience. Please tell me what's wrong and how to proceed.