Is that what you want ?
In reply to Re: extract a substring between two emements by exilepanda in thread extract a substring between two emements by Shaveta_Chawla