Created
December 5, 2018 13:45
-
-
Save maryo/e5f02dd410fb58b740d098bad1a6b3c6 to your computer and use it in GitHub Desktop.
Vlna na webu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function vlna(string $text): string | |
{ | |
return preg_replace('/([^a-zA-Z0-9])([ksvzaiou])\s([a-zA-Z0-9]{1,})/i', "\$1\$2\xc2\xa0\$3", $text); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment