Advertisement
Guest User

Untitled

a guest
May 25th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.20 KB | None | 0 0
  1. #!/usr/bin/env php
  2.  
  3. <?php
  4.  
  5.     $str = 'Вот string на двух languages';
  6.  
  7.     preg_match_all('/[a-zA-Z]+/', $str, $matches_en);
  8.     preg_match_all('/[а-яА-ЯЁё]+/u', $str, $matches_ru);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement