Answers for "js get word before question mark"

0

js get word before question mark

var str = "/root/Users?SkillId=201;"

str = str.replace(/\?.*$/g,"");
console.log(str);
Posted by: Guest on August-10-2021

Code answers related to "js get word before question mark"

Code answers related to "Javascript"

Browse Popular Code Answers by Language