News
See Also @stdlib/string-substring-before: return the part of a string before a specified substring. @stdlib/string-substring-before-last: return the part of a string before the last occurrence of a ...
Return the part of a string before the last occurrence of a specified substring. - stdlib-js/string-substring-before-last ...
Javascript string substr() method : the substr() method is used to extract the sub-string from a string. it counts the index from 0. it returns the number of characters starts from the first parameter ...
The problem with your latter post is that indexOf returns (-1) when the substring is not found. <BR><BR>-1 == true<BR><BR>Instead test if the indexOf ("index2.htm") > -1.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results