I have a string called myStr="file://test"; I want to get text after file:// test out of it; I could do it with
myStr ="file://test"
myStr.substr(myStr.lastIndexOf('/') + 1);
but thats not the right way; could you please help me with regular expression: My attempt with regualr expression is the following, but it just checks (if exists it returns 0) whether it exists or not(if it does not exist -1 to return)
myStr.search(new RegExp("file://"))