while () { if(/]*>/i .. /<\/notes>/i){ strip the tags; print; } }