fork(2) download
  1. cat <<EOF | sed -e '/^7/d' | sed -e '/^\+1/d' | sed -e '/^8888/d' | sed -e 's/+8/8/' | grep '[\+7-8 ][- ( 0-9 ) ]\{4\}[- 0-9 ]\{7\}'
  2. 84951234567
  3. +74951234567
  4. 8-495-1-234-567
  5. 8 (8122) 56-56-56
  6. 8-911-1234567
  7. 8 (911) 12 345 67
  8. 8-911 12 345 67
  9. + 7 999 123 4567
  10. 8 999 123 4567
  11. 02
  12. 849512345
  13. 849512345678
  14. 8 (409) 123-123-123
  15. 7900123467
  16. 5005005001
  17. 8888-8888-88
  18. 84951a234567
  19. 8495123456a
  20. +1 234 5678901
  21. +8 234 5678901
  22. 7 234 5678901
  23. EOF
Success #stdin #stdout 0.03s 5264KB
stdin
Standard input is empty
stdout
+74951234567
8-495-1-234-567
8 (8122) 56-56-56
8-911-1234567
8-911 12 345 67
+ 7 999 123 4567
8 999 123 4567
849512345678
8 (409) 123-123-123
8 234 5678901