Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js get word before question mark

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

str = str.replace(/?.*$/g,"");
console.log(str);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #word #question #mark
ADD COMMENT
Topic
Name
1+8 =