Forum Discussion
katherine3
3 years agoOccasional Visitor
As i know the Replace function in most programming languages does not support regular expressions or wildcards for pattern matching. the os.path.splitext function splits the file name into its base name and extension. By selecting the first element of the resulting tuple, you obtain the file name without the extension.