Use regex for path and empty final path segment for all_tables