SyntaxFix
Write A Post
Hire A Developer
Questions
You can also try this:
var str = 'one:two;three'; str.split(':').pop().split(';')[0]; // returns 'two'