/*([^/]*)/*$, now capturing the non-///'') otherwise. The behaviour is consistent with the 
POSIX basename program.157Before 
SWI-Prolog 7.7.13, if argPath ended with a /