##get arguments
as array
var args = Array.prototype.slice.call(arguments);
see: http://devdocs.io/javascript/functions_and_function_scope/arguments
##find a regexps groups
var matches = /(hello \S+)/.exec('This is a hello world!');
alert(matches[1]);