Helper function to find DOIs in strings. Can occasionally erroneously extract DOIs (subset of another DOI for example). Regular expression based on CrossRef (http://bit.ly/doi-regex; see also check_doi).

find_doi(strings)

Arguments

strings

Vector of strings to check for DOIs

Value

Vector of DOIs

Examples

find_doi('This contains 10.1111/j.1365-2044.2012.07128.x')
#> [1] "10.1111/j.1365-2044.2012.07128.x"