i
Hate
Regex
Library
Cheatsheet
Community
Open playground
matches a digital object identifier (doi)
Regex title
Edit anything to remix
Remix in playground
JavaScript
Expression
/
Regular expression
^
(
10
\.
\d
{4,5}
\/
[\S]
+
[^;,.\s]
)
$
^(10\.\d{4,5}\/[\S]+[^;,.\s])$
/
gmi
g
i
m
s
u
y
flags
Test bench
Sample text
4 matches
10.1000/123456
10.1038/issn.1476-4687
10.1111/dome.12082
10.1111/josi.12122
10.1000/123456 10.1038/issn.1476-4687 10.1111/dome.12082 10.1111/josi.12122
Structure
Railroad diagram
Interactive
SVG
PNG
Copy
Embed
Live
Strings that match
10.1000/123456
10.1038/issn.1476-4687
10.1111/dome.12082
10.1111/josi.12122
Strings that don’t match
Every sample above matches.
Related patterns
C-like identifier
match an C-like identifier