<?php
$textRus = 'Пocтaвкa мяco гoвядины, бecкостнoe для нужд государственного бюджетного учреждения здравоохранения Республики Башкортостан Инфекционная клиническая больница № 4 города Уфа' ;
$textEng = 'Grеedy b*tсhes' ;
$regexp = '/ [^ ]+ /u' ;
$regexpRus = '/([а-яёА-ЯЁ])([e|E|T|y|o|O|p|P|a|H|K|x|X|c|C|B|M])([а-яёА-ЯЁ])/u' ;
$regexpEng = '/([a-zA-Z])([е|Е|Т|у|о|О|р|Р|а|Н|К|х|Х|с|С|В|М])([a-zA-Z])/u' ;
$resultRus = preg_replace ( $regexpRus , '$1[$2]$3' , $textRus ) ; echo "Русский текст: {$resultRus} \n " ;
$resultEng = preg_replace ( $regexpEng , '$1[$2]$3' , $textEng ) ; echo "Английский текст: {$resultEng} \n " ;
// your code goes here
PD9waHAKCiR0ZXh0UnVzID0gJ9Cfb2PRgmHQstC6YSDQvNGPY28g0LNv0LLRj9C00LjQvdGLLCDQsWVj0LrQvtGB0YLQvW9lINC00LvRjyDQvdGD0LbQtCDQs9C+0YHRg9C00LDRgNGB0YLQstC10L3QvdC+0LPQviDQsdGO0LTQttC10YLQvdC+0LPQviDRg9GH0YDQtdC20LTQtdC90LjRjyDQt9C00YDQsNCy0L7QvtGF0YDQsNC90LXQvdC40Y8g0KDQtdGB0L/Rg9Cx0LvQuNC60Lgg0JHQsNGI0LrQvtGA0YLQvtGB0YLQsNC9INCY0L3RhNC10LrRhtC40L7QvdC90LDRjyDQutC70LjQvdC40YfQtdGB0LrQsNGPINCx0L7Qu9GM0L3QuNGG0LAg4oSWIDQg0LPQvtGA0L7QtNCwINCj0YTQsCc7CiR0ZXh0RW5nID0gJ0dy0LVlZHkgYip00YFoZXMnOwokbWF0Y2hlcyA9IGFycmF5KCk7CiR3b3JkcyA9IGFycmF5KCk7CgokcmVnZXhwID0gJy8gW14gXSsgL3UnOwokcmVnZXhwUnVzID0gJy8oW9CwLdGP0ZHQkC3Qr9CBXSkoW2V8RXxUfHl8b3xPfHB8U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