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 = '123456@i.ru   Приивет halloy  123456@ru.name.ru  Hola!1 {}   login@i.ru   presrnt portfolio. login  логин-1@i.ru  logining  login.3@i.ru    login.3-67@i.ru  allo olo-lo-olo-lo-lo  1login@ru.name.ru  Look_at-allthesespaces@example.com';
  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: