function regexToDelimiter()

in transformer.js [40:50]


function regexToDelimiter(regex, delimiter, data, callback) {
    var tokens = JSON.stringify(data).match(regex);

    if (tokens) {
	// emitting a new buffer as delimited text whose contents are the regex
	// character classes
	callback(null, new Buffer(tokens.slice(1).join(delimiter) + "\n"));
    } else {
	callback("Configured Regular Expression does not match any tokens", null);
    }
};