Last active
June 8, 2022 16:46
-
-
Save andrewrs/47064fd9a5fb6cc91ad40b4a82eeafe5 to your computer and use it in GitHub Desktop.
doi regex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var teststring = "https://doi-org.mutex.gmu.edu/10.1177/0886260517708407" | |
var testout = teststring.match(/\b(10[.][0-9]{4,}(?:[.][0-9]+)*\/(?:(?!["&\'<>])\S)+)\b/g); | |
console.log(testout); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment