regex for digital object identifier
matches a digital object identifier (doi)
^(10\.\d{4,5}\/[\S]+[^;,.\s])$
Regex Flags
global match
?
ignore case
?
multiline
?
dotAll
?
unicode
?
sticky
?
10.1000/123456
10.1038/issn.1476-4687
10.1111/dome.12082
10.1111/josi.12122
A DOI is an identifier/handle used to identify objects uniquely
Read DOI
Cheatsheet
expr | usage |
---|---|
/\w/ | matches any word character (a-z, A-Z, 0-9, _) |
/[0-9]/ | matches all digits |
/(hello){1,3}/ | matches "hello" that occur between 1 and 3 times (inclusive) |
/^/ | matches beginning of a line |
/$/ | matches end of a line |
iHateRegex
by
geon