function removeFilesByRegExp( dir, re ) { // TODO: create a `@stdlib/fs/*` utility package for this
	var list;
	var i;

	list = readDir( dir );
	for ( i = 0; i < list.length; i++ ) {
		if ( re.test( list[ i ] ) ) {
			unlink( path.join( dir, list[ i ] ) );
		}
	}
}
Removes files from a directory which match a provided regular expression.

@private
@param {string} dir - directory
@param {RegExp} re - regular expression to test whether a file should be removed