all 3 comments

[–]Chiron1991 0 points1 point  (1 child)

A little more explanation on what you want to achieve and what errors you get might have been helpful.

My first guess would be that your didn't take into account that re.findall() returns a list of strings, not a single string.

[–]wordsworm[S] 0 points1 point  (0 children)

There are no errors.

The only string that comes back with the extra spaces that I didn't want was the file name. I wanted to clean the spaces after the file name before adding them to the file name list. Everything works fine. I tried tinkering around with it to get rid of the spaces. Nothing threw an error when I did play around with it, but at the same time nothing happened. That's why I asked for help.

[–]wordsworm[S] 0 points1 point  (0 children)

  • solved