Madmouse

this shit is pretty neat lol, and i simplified it

Jul 9th, 2016
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. [anon@localhost regexgen]$ cat test
  2. (888)745-6601
  3. 5037456503
  4. 503-745-6503
  5. 5037456503
  6. (503) 745-6601
  7.  
  8. 5037456503
  9. 5037456503
  10. (503)745-6601
  11. 5037456503
  12. (503)745-6601
  13. (503)745-6601
  14. 5037456503
  15. (503)745-6601
  16.  
  17. (503) 745-6601
  18.  
  19. [anon@localhost regexgen]$ ./regex.py test
  20. Pass_1 =
  21. NNNNNNNNNN
  22. NNN-NNN-NNNN
  23. -NNN-NNN-NNNN
  24. -NNN-SNNN-NNNN
  25. Pass_2 =
  26. ['NNNNNNNNNN']
  27. ['NNN', '-', 'NNN', '-', 'NNNN']
  28. ['-', 'NNN', '-', 'NNN', '-', 'NNNN']
  29. ['-', 'NNN', '-', 'S', 'NNN', '-', 'NNNN']
  30. [anon@localhost regexgen]$
Advertisement
Add Comment
Please, Sign In to add comment