I'm trying to figure out how to isolate all file extensions from a list of file names using regex and endsWith
.
So as an example
input: file.txt, notepad.exe
output: txt, exe
What my idea is, is to use filter
to get file names that endsWith("."_)
. But endsWith("."_)
doesn't work.
Any suggestions?