The regular is correct, but due to the fact that Russian characters are in it, it gives out the Vorning.

Warning: preg_match() [function.preg-match]: Unknown modifier ' '

What to do?

 preg_match ('Публикаци.\s*\((\d+)\)', $p, $per); 

    1 answer 1

    This is not because of Russian characters. Simply you have forgotten the separators, so П from the word Публикаци understood as a modifier.

    The correct option is:

     preg_match('/Публикаци.\s*\((\d+)\)/', $p, $per)