email count - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of email count.php

  1. <?php
  2. $pattern= '/^(([0-9A-Za-zА-Яа-я]{1}[-~0-9A-zА-Яа-я\.]{1,}[0-9A-Za-zА-Яа-я]{1}))@([-A-Za-z]{1,}\.){1,2}[-A-Za-z]{2,})$/u';
  3. $matches = '[email protected]   Приивет halloy  [email protected]  Hola!1 {}   [email protected]   presrnt portfolio. login  логин[email protected]  logining  [email protected]    [email protected]  allo olo-lo-olo-lo-lo  [email protected]  [email protected]';
  4. preg_match_all($pattern, $subject, $matches);
  5. print_r($matches);
File Description
  • email count
  • PHP Code
  • 16 Sep-2021
  • 464 Bytes
You can Share it: