When I am in a particular elfeed entry buffer, I want to call a function that records the article in my .bib file by extracting the following PMID and DOI numbers from my elfeed-entry buffer:
PMID:55337811 | PMC:PMC9338633 | DOI:10.1386/s12984-012-04448-z
I was having difficulty figuring out how to extract the PMID and DOI number. My goal is to extract the string and use it as input to another function such as entering the data in my .bib file. For example, I want to use the DOI number in the following function:
(doi-add-bibtex-entry <extracted DOI number here> location/main-bib-library)
I was having trouble figuring out how to use regular expressions to extract the strings properly in elisp.