Код: Выделить всё
Pattern.compile("^s3://([^/]+)/(.*?([^/]+))$");
Код: Выделить всё
s3://bucket/path/key
Код: Выделить всё
s3://bucket/path/directory/
Подробнее здесь: https://stackoverflow.com/questions/186 ... -directory
Код: Выделить всё
Pattern.compile("^s3://([^/]+)/(.*?([^/]+))$");
Код: Выделить всё
s3://bucket/path/key
Код: Выделить всё
s3://bucket/path/directory/