A small #ProgrammingTip: rather than coding complex string parsing routines when working with filepaths. Use existing built-in methods such as :
- python : `os.path.dirname(myPath) / os.path.basename(myPath)`
- java : `Paths.get(myPath).getParent() / getFileName()`
- #imagej macro : ` File.getDirectory(myPath) / File.getName(myPath)`
I have seen it in a number of different users that I think it's worth mentioning ;)