Node/core/lib/dialogs/PromptRecognizers.js
function matchAll(exp, text) {
    exp.lastIndex = 0;
    var matches = [];
    var match;
    while ((match = exp.exec(text)) != null) {
        matches.push(match[0]);
    }
    return matches;
}
function matchAll(exp, text) {
    exp.lastIndex = 0;
    var matches = [];
    var match;
    while ((match = exp.exec(text)) != null) {
        matches.push(match[0]);
    }
    return matches;
}
function matchAll ( exp , text ) { exp . lastIndex = 0 ; var matches = [ ] ; var match ; while ( ( match = exp . exec ( text ) ) != null ) { matches . push ( match [ 0 ] ) ; } return matches ; }
Matches all occurences of an expression in a string.
Matches all occurences of an expression in a string .