Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
<meta\s*?name="(?:ncbi_uidlist|citation_pmid)"\s*?content="(\d{8})"\s*?\/?>
/

Description

When encountering more than 1 pmid, make sure to return the first one

Submitted by agreco13 - 9 years ago