Original text:
document.pdf image.jpg spreadsheet.xlsx presentation.pptx
Extracting last 3 characters from each line:
pdf jpg lsx ptx
Website URLs:
https://www.example.com https://subdomain.example.org https://another.example.co.uk
Extracting last 3 characters from each line:
com org .uk