in file /wp-includes/wpmu-functions.php:
replace:
if( in_array( $blog_id, $illegal_names ) == true ) {
$errors->add('blog_id', __("That name is not allowed"));
}
with:
function my_inArray($needle, $haystack) {
# this function allows wildcards in the array to be searched
foreach ($haystack as $value) {
if (true === fnmatch($value, $needle)) {
return true;
}
}
return false;
}
if( my_inArray($blog_id, $illegal_names) == true ) {
$errors->add('blog_id', __("That name is not allowed"));
}
This will enable you to specify wildcards in your banned names lists. ie: *f**k*, *gr[ae]y*