I can\'t solve my problem with regexp.
Ok, when i type:
$string = preg_replace(\"#\\[name=([a-zA-Z0-9 .-]+)*]#\",\"$name_start $1 $name_end\",$string
This one worked for me:
/^[а-яА-Я\p{Cyrillic}0-9\s\-]+$/
I have tested in all the browsers including Safari