Blog

Andrew Gilmartin

Andrew has moved on from Crossref. Andrew Gilmartin was part of the US team responsible for implementing and overseeing the query and deposit systems. As a senior member of the technical staff, he helped plan the design and implementation of Crossref’s ever-evolving and growing services.

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

/^10.\d{4,9}/[-._;()/:A-Z0-9]+$/i

For the 74.9M DOIs we have seen this matches 74.4M of them. If you need to use only one pattern then use this one.