Fixing regex

This commit is contained in:
Louis 2026-02-24 14:35:46 +01:00
parent 96db7c5169
commit de4984c2c0

View file

@ -6,7 +6,7 @@ path <- args[1]
base_folder <- str_remove(string = path, pattern = "/tmp[0-9]*$")
base_folder <- str_remove(string = path, pattern = "/tmp[0-9]*/?$")
print(base_folder)
epoch <- str_extract(string = path, pattern = "(?<=tmp)([0-9]*)")