Sample Data :
D:\Movies\Iron Man\Iron Man.mp4
D:\Movies\Kung Fu Panda 3\Kung Fu Panda 3.mp4
D:\Movies\SING\SING.mp4
D:\Movies\Split\Split.mp4
D:\Movies\Zootopia\Zootopia.mp4
How can I trim these paths just before the backslash while iterating through a for
loop, so that I can extract the names. i.e.
Iron Man.mp4
Kung Fu Panda 3.mp4
SING.mp4
Split.mp4
Zootopia.mp4
It will be really helpful of you to help.