0

TypeError: Object # has no method 'isAbsolute'

cssmin: {
            target: {
                src: ["styles/css/main.css"],
                dest: "styles/css/main.min.css"
            }
        }

Expected output:

[123,ABC S,ABC.s@xyz.com],[234,Def K,def.k@xyz.com]

Simply

var input = "123|ABC S|ABC.s@xyz.com!!234|Def K|def.k@xyz.com";
var output = input.split("!!").map(function(item) {
  return item.split("|");
});

console.log( JSON.stringify( output, 0, 4 ) )

Split the input string by !! and then split the individual items from this first split by |

4

0 回答 0