put backslash inside split
str = "active - error - oakp-ms-001 Volume Usage-E:\ PercentUsed E:\"
put backslash inside split
str = "active - error - oakp-ms-001 Volume Usage-E:\ PercentUsed E:\"
put backslash inside split
var parts = str.split("\\"); // Splits on a single backslash
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
}
put backslash inside split
str = "active - error - oakp-ms-001 Volume Usage-E:\\ PercentUsed E:\\";
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us