Is there a way to remove the entire file path from a file using regular expressions?
I have a very long list of file names with path that I keep at cloud and it repeat every folder name for each file.
I need to remove that to compare with other list.
My list is like this:
Desired output would be like this:
I have a very long list of file names with path that I keep at cloud and it repeat every folder name for each file.
I need to remove that to compare with other list.
My list is like this:
Code: Select all
MEGAsync/Bonus do Mega/data/1Password for Windows v.4.6.2.625_arquivos/fontawesome-webfont.svg
MEGAsync/Bonus do Mega/data/1Password for Windows v.4.6.2.625_arquivos/fontawesome-webfont.ttf
MEGAsync/Bonus do Mega/data/1Password for Windows v.4.6.2.625_arquivos/fontawesome-webfont.woff
MEGAsync/Bonus do Mega/data/1Password for Windows v.4.6.2.625_arquivos/fontawesome-webfont.woff2
MEGAsync/Bonus do Mega/data/1Password for Windows v.4.6.2.625_arquivos/icomoon.eot
MEGAsync/Bonus do Mega/data/1Password for Windows v.4.6.2.625_arquivos/icomoon.svg
MEGAsync/Bonus do Mega/data/1Password for Windows v.4.6.2.625_arquivos/icomoon.ttf
MEGAsync/Bonus do Mega/data/1Password for Windows v.4.6.2.625_arquivos/icomoon.woff
MEGAsync/Bonus do Mega/data/1Password for Windows v.4.6.2.625_arquivos/icons.png
MEGAsync/Bonus do Mega/data/1Password for Windows v.4.6.2.625_arquivos/icons_001.png
MEGAsync/Bonus do Mega/data/1Password for Windows v.4.6.2.625_arquivos/index.css
MEGAsync/Bonus do Mega/data/1Password for Windows v.4.6.2.625_arquivos/index.dat
MEGAsync/Bonus do Mega/data/1Password for Windows v.4.6.2.625_arquivos/index.html
MEGAsync/Bonus do Mega/data/CB broken on Firefox 48+/mem5yags126mizpba-un_r8oxuhpoqc.woff2
MEGAsync/Bonus do Mega/data/CB broken on Firefox 48+/mem5yags126mizpba-unirkouehpoqc.woff2
MEGAsync/Bonus do Mega/data/CB broken on Firefox 48+/mem5yags126mizpba-unirkouuhp.woff2
MEGAsync/Bonus do Mega/data/CB broken on Firefox 48+/mem5yags126mizpba-unirkovuhpoqc.woff2
MEGAsync/Bonus do Mega/data/CB broken on Firefox 48+/mem5yags126mizpba-unirkox-hpoqc.woff2
MEGAsync/Bonus do Mega/data/CB broken on Firefox 48+/mem5yags126mizpba-unirkoxehpoqc.woff2
MEGAsync/Bonus do Mega/data/CB broken on Firefox 48+/mem5yags126mizpba-unirkoxohpoqc.woff2
MEGAsync/Bonus do Mega/data/CB broken on Firefox 48+/mem5yags126mizpba-unirkoxuhpoqc.woff2
MEGAsync/Bonus do Mega/data/CB broken on Firefox 48+/mem8yags126mizpba-ufuz0bbck.woff2
MEGAsync/Bonus do Mega/data/CB broken on Firefox 48+/mem8yags126mizpba-ufvp0bbck.woff2
MEGAsync/Bonus do Mega/data/CB broken on Firefox 48+/mem8yags126mizpba-ufvz0b.woff2
MEGAsync/Bonus do Mega/data/CB broken on Firefox 48+/mem8yags126mizpba-ufw50bbck.woff2
MEGAsync/Bonus do Mega/data/CB broken on Firefox 48+/mem8yags126mizpba-ufwj0bbck.woff2
MEGAsync/Bonus do Mega/data/CB broken on Firefox 48+/mem8yags126mizpba-ufwp0bbck.woff2
Code: Select all
fontawesome-webfont.svg
fontawesome-webfont.ttf
fontawesome-webfont.woff
fontawesome-webfont.woff2
icomoon.eot
icomoon.svg
icomoon.ttf
icomoon.woff
icons.png
icons_001.png
index.css
index.dat
index.html
mem5yags126mizpba-un_r8oxuhpoqc.woff2
mem5yags126mizpba-unirkouehpoqc.woff2
mem5yags126mizpba-unirkouuhp.woff2
mem5yags126mizpba-unirkovuhpoqc.woff2
mem5yags126mizpba-unirkox-hpoqc.woff2
mem5yags126mizpba-unirkoxehpoqc.woff2
mem5yags126mizpba-unirkoxohpoqc.woff2
mem5yags126mizpba-unirkoxuhpoqc.woff2
mem8yags126mizpba-ufuz0bbck.woff2
mem8yags126mizpba-ufvp0bbck.woff2
mem8yags126mizpba-ufvz0b.woff2
mem8yags126mizpba-ufw50bbck.woff2
mem8yags126mizpba-ufwj0bbck.woff2
mem8yags126mizpba-ufwp0bbck.woff2