-
-
Save midnai/334c3d67799bf3d91104defe8daeca68 to your computer and use it in GitHub Desktop.
Get a substring using regex to remove the part you don't want
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 str = '/?token=123ADV'; | |
var result = str.replace(/^(.*)?\=/g,''); | |
//result = 123ADV |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment