Answers for "put backslash inside split"

0

put backslash inside split

str = "active - error - oakp-ms-001 Volume Usage-E:\ PercentUsed E:\"
Posted by: Guest on May-24-2021
0

put backslash inside split

var parts = str.split("\\"); // Splits on a single backslash
Posted by: Guest on May-24-2021
0

put backslash inside split

var str = "active - error - oakp-ms-001 Volume Usage-E:\\ PercentUsed E:\\";
var match = str.match(/error - (.*?) ?Volume/);
if (match) {
    console.log(match[1]); // oakp-ms-001
}
Posted by: Guest on May-24-2021
0

put backslash inside split

str = "active - error - oakp-ms-001 Volume Usage-E:\\ PercentUsed E:\\";
Posted by: Guest on May-24-2021

Browse Popular Code Answers by Language