Closed kcho closed 1 year ago
Looks good! Although, the .group(1) means that it will only check the first file that matches that pattern right? I'm not sure if maybe you want to add a check for duplicates somewhere (unless that's covered by another part of the code).
Thanks Owen! .group(1)
gets the string matched by the re.search
, that is inside the parenthesis in the pattern.
eg)
re.search(r'ABC(DEF)', x).group(1)
gets DEF
if x
contains 'ABCDEF'
.
check_mri_date
is updated toTo test the function