Function: kill-matching-buffers

Kill buffers whose name matches the specified REGEXP.
The optional second argument indicates whether to kill internal buffers too.