diff --git a/tsvtools/cli.py b/tsvtools/cli.py index f1e5b68..d554f25 100644 --- a/tsvtools/cli.py +++ b/tsvtools/cli.py @@ -268,7 +268,7 @@ def make_page2tsv_commands(xls_file, directory, purpose): elif directory is not None: for file in glob.glob('{}/**/*.xml'.format(directory), recursive=True): - ma = re.match('(.*/(PPN[0-9]+)/([0-9]+)).xml', file) + ma = re.match('(.*/(PPN[0-9]+)/.*?([0-9]+).*?).xml', file) if ma: print('page2tsv {} {}.tsv '