It will extract the phone no. and email address from text copied, directly from clipboard.We does not need to paste the content anywhere it will directly read the content from clipboard.
- Python
- pip
- pyperclip
- Download the python script - extrctor.py
- Copy the content using Ctrl-A , Ctrl-C
- Run the script normally as you run any other python file.
You will get the result on output screen.
- 1234567890
- 123-456-7890
- (123)(456)(7890)
- 123.456.7890
- (123) (456-7890)
And various other using combination of space, '-', '()', '.' as separator.
- Open the file named-'test-data'.
- Copy its content using Ctrl-A, Ctrl-C.
- Run extractor.py.
Following will be the output--
Found 7 results: 1234567890 (123)(456)(7890) 1234567890 123456(7890) 1234567890 [email protected] [email protected]