Fixing regex
This commit is contained in:
parent
96db7c5169
commit
de4984c2c0
1 changed files with 1 additions and 1 deletions
|
|
@ -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]*)")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue