Last active
November 7, 2018 04:04
-
-
Save educartoons/d337fa7b15c98724a874d25eaab95953 to your computer and use it in GitHub Desktop.
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
const str = window.location.href ; | |
const regex = /\/chaplains\/([0-9]{1,5})/g; | |
const results = regex.exec(str); | |
const id = results[1]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment