let regex = new RegExp("\/gateway\/v1\/onboard\/core\/v2\/users\/[a-zA-Z0-9]+\/reset");
let str2 = "/gateway/v1/onboard/core/v2/users/NGDemo/reset";
let com = regex.test(str2)
console.log(com);
2
solved How to prove two strings are equal
let regex = new RegExp("\/gateway\/v1\/onboard\/core\/v2\/users\/[a-zA-Z0-9]+\/reset");
let str2 = "/gateway/v1/onboard/core/v2/users/NGDemo/reset";
let com = regex.test(str2)
console.log(com);
2
solved How to prove two strings are equal