1 function validateResourceName(string) {
2 var pattern = /(\w)*\\(?!\\)(\w)*\\(?!\\)(\w)*(?!\\)/g;
3 if (!pattern.test(string)) {
4 alert("not a match");
5 } else {
6 alert("match");
7 }
8
9}
10if(JWS_REGEX.test('abc')){
11console.log('valid token')
12} else {
13 console.log('not valid');
14}