<?php $text = <<<HEREDOC Мама , мыла : раму % The - mother = washen $ rooms HEREDOC; $re = "/\W+/u";
Standard input is empty
array(7) { [0]=> string(8) "Мама" [1]=> string(8) "мыла" [2]=> string(8) "раму" [3]=> string(3) "The" [4]=> string(6) "mother" [5]=> string(6) "washen" [6]=> string(5) "rooms" }