Altered regex
This commit is contained in:
parent
20e8684d5b
commit
3ba24fb5fc
@ -8,7 +8,7 @@ print(file_name)
|
|||||||
dptFile = open(file_name, 'r')
|
dptFile = open(file_name, 'r')
|
||||||
lines = dptFile.readlines()
|
lines = dptFile.readlines()
|
||||||
|
|
||||||
subject = re.split("(?<=_)(.+)(?=_)", file_name)[1]
|
subject = re.split("(?<=_)(.+)(?=\.)", file_name)[1]
|
||||||
jsonString = '{\" + subject + \": ['
|
jsonString = '{\" + subject + \": ['
|
||||||
|
|
||||||
# Concatenate data
|
# Concatenate data
|
||||||
|
Loading…
Reference in New Issue
Block a user