Visit the main Crossref website

Crossref

DOIs and matching regular expressions

We regularly see developers using regular expressions to validate or scrape for DOIs. For modern Crossref DOIs the regular expression is short


This is a companion discussion topic for the original entry at https://0-www-crossref-org.lib.rivier.edu/blog/dois-and-matching-regular-expressions/

Shouldn’t these regexes all start with /^10\. rather than /^10. ?