Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript substring after character

// function you can use:
function getSecondPart(str) {
    return str.split('-')[1];
}
// use the function:
alert(getSecondPart("sometext-20202"));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #substring #character
ADD COMMENT
Topic
Name
7+6 =