This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import argparse | |
def collect_all_bibs(bib_files): | |
# regex for anything that matches "@[some word]{[something]," | |
bibtex_key_regex = r"@\w*{.*(?=\,)" | |
# convert strings to lists in case only one file | |
if isinstance(bib_files, str): | |
bib_files = [bib_files] |