Returns the last past segment for a '' delimited string
to a folder or a file
the last segment
getLastPathSegment('\\hello\\world\\'); // 'world'getLastPathSegment('\\hello\\'); // 'hello'getLastPathSegment('\\hello\\\\'); // '' Copy
getLastPathSegment('\\hello\\world\\'); // 'world'getLastPathSegment('\\hello\\'); // 'hello'getLastPathSegment('\\hello\\\\'); // ''
Returns the last past segment for a '' delimited string