Jovian
⭐️
Sign In
In [1]:
import re, pyperclip
In [8]:
text = "Gagan is 35 years old and his son, Sandeep is 12 years old and his grandfather, Mukesh is 89 years old."
In [4]:
age = re.findall(r'\d\d' ,text)
In [5]:
age
Out[5]:
['35', '12', '89']
In [18]:
names = re.findall( r'[A-Z] [a-z]*' ,text)
In [7]:
names
Out[7]:
['Gagan', 'Sandeep', 'Mukesh']
In [9]:
text2 = pyperclip.paste()
In [10]:
text
Out[10]:
'Gagan is 35 years old and his son, Sandeep is 12 years old and his grandfather, Mukesh is 89 years old.'
In [11]:
text2
Out[11]:
"Sample Phone Directory\r\nAAA Concrete\r\nBusiness: 808-779-1466\r\nABC Learning Center\r\nBusiness: 801-557-2819\r\nABC Learning Center-Downtown\r\nBranch\r\nBusiness: 801-997-4158\r\nMark Adamson\r\nHome: 843-798-6698\r\nE-mail: madamson@sncn.net\r\nAll Track International\r\nBusiness: 503-233-8335\r\nFax: 503-233-0009\r\nAllison Andrews\r\nHome: 612-321-0047\r\nE-mail: AEA@anet.com\r\nCellular: 612-393-0029\r\nDustin Andrews\r\nHome: 612-321-0047\r\nE-mail: AEA@anet.com\r\nCellular: 612-393-0029\r\nElizabeth Ashton\r\nHome: 912-927-1215\r\nAutumn Industries, Inc.\r\nFax: 228-986-5430\r\nLucy Avdeenko\r\nHome: 207-363-5517\r\nJulie Bach\r\nHome: 412-565-9978\r\nE-mail: jules@att.com\r\nDerrick Baker\r\nE-mail: djb1@homenet.com\r\nFrancis Baker\r\nHome: 915-562-2331\r\nE-mail: fbaker@elpaso.com\r\nBaldwin Entertainment\r\nCorporation\r\nBusiness: 773-242-6323\r\nBarclay Furniture\r\nBusiness: 910-634-4821\r\nGeoffrey Beckner\r\nHome: 843-749-0938\r\nFax: (803) 522-5774\r\nKyle Bell\r\nKathleen Bently\r\nHome: 404-864-2522\r\nJoseph Bernstein\r\nHome: 800-555-0909\r\nTimothy Billings\r\nHome: 303-671-3232\r\nFax: (303) 283-2931\r\nBottling Unlimited\r\nBusiness: 800-975-1524\r\nBusiness Information Systems\r\nBusiness: 800-948-5212\r\nFax: 702-939-2999\r\nJason Campbell\r\nHome: 706-435-8511\r\nCarter Pharmaceuticals, Inc.\r\nBusiness: 302-798-6260\r\nCharleston Development\r\nCorporation\r\nBusiness: 843-498-5569\r\nCity Insurance Company\r\nBusiness: 402-343-7700\r\nZachery Clover\r\nHome: 206-587-3010\r\nAutumn Compton\r\nHome: 615-255-7410\r\nFax: (901) 765-4642\r\nAgnes Cone\r\nHome: 843-555-7623\r\nBenjiman Connor\r\nHome: 804-741-5241\r\nConsulting Group, Ltd.\r\nBusiness: 404-977-5810\r\nE-mail: consultgrp@netcore.com\r\nCotton Clothing, Inc.\r\nBusiness: 206-594-6648\r\nAndrew Crenshaw\r\nHome: 212-545-0010\r\nEllen Crenshaw\r\nHome: 212-545-0010\r\nCatlin Daly\r\nHome: 415-749-3214\r\nE-mail: dalycatren@msn.com\r\nFax: 702-939-2999\r\nClara Daniels\r\nHome: 203-778-2523\r\nDavenport Creamery\r\nBusiness: 802-697-1214\r\nSean Davenport\r\nHome: 305-326-1551\r\nE-mail: sad@net.com\r\nDavis & Johnson\r\nPharmaceuticals\r\nBusiness: 312-641-0332\r\nFax: 312-265-7700\r\nDavis & Simms\r\nBusiness: 908-648-2111\r\nLisa Davis\r\nHome: 819-833-9600\r\nDiamond Import & Export\r\nBusiness: 801-323-1000\r\nAngela Diresta\r\nHome: 205-566-1254\r\nE-mail: adiresta@aol.net.com\r\nCellular: 888-895-6321\r\nJoseph Diresta\r\nHome: 205-566-1254\r\nE-mail: JPdiresta@net.com\r\nCellular: 888-895-6321\r\nRyan Dorrion\r\nHome: 336-725-6397\r\nE-mail: dorrion.ryan@aotw.com\r\nCollin Dubose\r\nHome: 505-265-1120\r\nNicole Dustin\r\nHome: 225-765-3314\r\nDynamic Engineering\r\nBusiness: 843-555-4356\r\nAnthony Ellis\r\nHome: 603-733-9393\r\nFax: (843) 786-7200\r\nElohim Synagogue Melissa Elzy\r\nHome: 304-754-2217\r\nHeather Faulkner\r\nHome: 409-884-5411\r\nJeffrey Ferber George Finley\r\nHome: 414-276-9162\r\nFax: (302) 658-1870\r\nForeign Financial Group, Ltd.\r\nBusiness: 401-949-5454\r\nFrancis R. Heidt Memorial\r\nHospital\r\nBusiness: 612-482-3329\r\nE-mail: frhhospital@amc.org\r\nPaul Frantz\r\nHome: 216-432-5572\r\nFax: 216-721-5300\r\nGarcia Family Dentistry\r\nBusiness: 307-418-0057\r\nFax: 307-418-0058\r\nJill Garrett\r\nHome: 203-421-8712\r\nKatherine Garrity\r\nHome: 843-772-0707\r\nStanley Garrity\r\nHome: 843-772-0707\r\nFrederic Gaskins\r\nHome: 503-895-6262\r\nAllison Goodson\r\nHome: 843-823-2526\r\nE-mail: dag@homeplace.com\r\nHarry Goodson\r\nHome: 843-823-2526\r\nJeffrey Goodson\r\nHome: 843-823-2526\r\nBetsy Graack\r\nHome: 973-733-1105\r\nKristy Graham\r\nHome: 214-630-8834\r\nGraphic Images, Inc.\r\nBusiness: 816-549-2158\r\nWade Grayson\r\nHome: 214-630-8834\r\nDale Green\r\nHome: 270-157-9845\r\nLisa Haas\r\nHome: 415-353-9157\r\nAlexander Hamilton\r\nHome: 541-998-7564\r\nSamantha Hart\r\nHome: 401-276-7777\r\nE-mail: sam.hart@walden.edu\r\nFax: 401-253-2707\r\nAlan Hayes\r\nE-mail: ach@home.net\r\nAlan Hayes\r\nFax: 503-233-0009\r\nCole Hensley\r\nHome: 704-364-8828\r\nFax: (919) 765-7355\r\nRobert Hernandez\r\nHome: 303-997-3301\r\nE-mail: rhernandez@net.com\r\nCellular: 888-387-1211\r\nFax: 312-923-1190\r\nJackson Holt\r\nHome: 843-469-1218\r\nLaura Holt\r\nHome: 843-469-1218\r\nAlexander Horne\r\nHome: 802-771-4587\r\nE-mail: alex.horne@snet.net\r\nTravis Inman\r\nHome: 513-621-3702\r\nE-mail: trinman@cmsn.net\r\nInman's Industrial Supply\r\nBusiness: 614-889-9565\r\nDean Isley\r\nHome: 219-239-5177\r\nClaudia Ivery\r\nHome: 843-766-1578\r\nE-mail: claudia.ivery@mousenet.com\r\nFax: 919-255-9865\r\nYoshi Izzo\r\nHome: 202-537-6614\r\nJefferson Manufacturing\r\nBusiness: 908-432-1185\r\nRichard Jefferson\r\nHome: 801-467-8999\r\nGretchen Jones\r\nHome: 204-722-8417\r\nFax: (919) 255-9865\r\nTerry Jones\r\nHome: 204-722-8417\r\nHampton Judson\r\nHome: 312-655-8102\r\nFax: 773-327-9921\r\nLorrel Justin\r\nHome: 715-232-7154\r\nPhillip Keller\r\nHome: 808-395-5587\r\nBebe Kemp\r\nHome: 843-723-0912\r\nE-mail: bdk@mbn.net\r\nJennifer Kennick\r\nHome: 410-523-6671\r\nFax: (410) 396-6209\r\nMarilyn Kessler\r\nHome: 617-695-3785\r\nDavid Korbin\r\nHome: 302-239-8722\r\nE-mail: dkorbin@allouette.com\r\nJennifer Kovalak\r\nHome: 912-376-1125\r\nE-mail: JenAnne@Conelink.net\r\nSpencer Kovalak\r\nHome: 912-376-1125\r\nMarianne Lambert\r\nHome: 843-884-5609\r\nRoger Langley\r\nHome: 956-728-1597\r\nLightning Air Transport\r\nBusiness: 404-323-6656\r\nAudrey Lorenz\r\nHome: 215-339-4120\r\nFax: (919) 255-9865\r\nKimberly Luton Joseph Mahoney\r\nHome: 603-474-8080\r\nIsabelle Matley\r\nHome: 843-559-4878\r\nE-mail: mig@homeweb.com\r\nSusan McDonald\r\nHome: 407-841-6679\r\nMarie McFarland\r\nHome: 360-922-2457\r\nOrla McGrann\r\nHome: 770-509-0487\r\nE-mail: orla.mcgrann@snet.net\r\nFax: 401-253-2707\r\nLeslie McNally\r\nHome: 410-557-6438\r\nMartha Mellon\r\nCellular: 203-555-0956\r\nMidland Banking Center\r\nBusiness: 501-227-3700\r\nFax: 501-202-1839\r\nMidlands Historical Museum\r\nBusiness: 336-965-8520\r\nCynthia Miller\r\nHome: 541-698-1208\r\nOtto Montgomery\r\nHome: 580-699-4521\r\nVirginia Morrison\r\nHome: 307-732-1589\r\nMt. Olympus Medical Center\r\nBusiness: 416-934-3544\r\nDavid Murphy\r\nHome: 617-499-8814\r\nMargaret Murphy\r\nHome: 617-499-8814\r\nNashville Healthcare\r\nBusiness: 615-327-1085\r\nFax: 901-765-4642\r\nPorter Nelson\r\nHome: 619-235-9914\r\nE-mail: nelson.porter@comcore.net\r\nFax: (316) 284-3663\r\nNew Mexico Gas & Electric\r\nBusiness: 505-842-0111\r\nLavern Nivens\r\nHome: 843-889-7478\r\nMarlena Nodason\r\nHome: 416-362-8457\r\nDale Nolan\r\nHome: 604-730-2457\r\nNorth General Hospital\r\nBusiness: 860-242-9912\r\nFax: 860-394-2322\r\nOak City Symphony Orchestra\r\nBusiness: 316-284-2293\r\nFax: 316-284-3663\r\nChloe Ohar\r\nHome: 815-727-9976\r\nOil One Distributor\r\nBusiness: 912-814-4102\r\nFax: 912-226-8070\r\nJacqueline O'Keefe\r\nHome: 508-665-9009\r\nVivian Olson\r\nHome: 605-333-9947\r\nBarrett O'Malley\r\nHome: 336-288-9548\r\nNeil Osborne\r\nHome: 813-348-5518\r\nCellular: revosborne@oldnet.com\r\nOutside Investments\r\nBusiness: 617-223-6369\r\nGrace Overstreet\r\nHome: 843-881-4799\r\nKenneth Parker\r\nHome: 402-821-6954\r\nCellular: 402-821-6954\r\nMadison Parker\r\nHome: 402-821-6954\r\nCellular: 402-821-6954\r\nPartytime Rentals\r\nBusiness: 704-555-8994\r\nMia Patras\r\nHome: 302-618-9874\r\nChad Patterson\r\nHome: 404-257-9854\r\nFax: (404) 633-7404\r\nLane Pembroke\r\nHome: 607-257-8134\r\nPennsylvania Glass & Paint\r\nCorporation\r\nBusiness: 888-387-2000\r\nNancy Peters\r\nCampbell Phan\r\nHome: 404-971-2245\r\nFax: (404) 527-7106\r\nPhillip's Drug Store\r\nBusiness: 404-983-4109\r\nSidney Prescott\r\nHome: 617-426-8598\r\nWilliam Quinn\r\nHome: 860-545-7154\r\nKeith Radcliffe\r\nHome: 503-295-4187\r\nMohammed Rahman\r\nHome: 937-233-6266\r\nScarlett Ray\r\nHome: 316-849-5147\r\nE-mail: KR8989@dbc.org\r\nRCS Corporation\r\nBusiness: 919-569-2369\r\nFax: 919-255-9865\r\nCarl Rhodes\r\nHome: 618-222-9796\r\nE-mail: carl.rhodes@aolrc.com\r\nJenny Rhodes\r\nCellular: 843-566-1234\r\nKyle Rhodes\r\nHome: 217-457-6628\r\nMary Beth Richardson\r\nHome: 605-733-5840\r\nE-mail: MBRichardson@abc123.com\r\nGinger Rosenberg\r\nHome: 212-423-5848\r\nIra Rosenberg\r\nHome: 212-423-5848\r\nFax: (212) 570-8625\r\nHarris Sadler\r\nHome: 804-569-6325\r\nFax: (804) 342-1683\r\nHeidi Schapiro\r\nE-mail: heidi.schapiro@comcor.net\r\nMartin Schultz Monica Sharp\r\nHome: 312-997-5178\r\nMary Simpson\r\nHome: 843-989-5256\r\nE-mail:\r\nmarysimpson1@mousenet.com\r\nAnne Sinclair\r\nHome: 843-881-9548\r\nJoseph Sinclair\r\nHome: 843-881-9548\r\nE-mail: joesinc@home.com\r\nHarold Smalls\r\nHome: 843-555-3106\r\nCellular: 843-778-2523\r\nJohn Smith\r\nHome: 502-451-8236\r\nStephanie Smith\r\nHome: 602-832-0987\r\nSmith, Wesley & Brennan\r\nBusiness: 202-824-6632\r\nTenli Smyth\r\nHome: 510-601-9852\r\nE-mail: tenli_smyth@home.com\r\nDaniel Snyder\r\nHome: 207-332-5849\r\nFax: (919) 255-9865\r\nSouth Carolina Blood Bank\r\nBusiness: 843-723-9402\r\nSouth Carolina Transporation\r\nAssociation\r\nFax: 843-786-7200\r\nSouthern Telegraph Company\r\nBusiness: 212-566-1965\r\nStar Mission Shelter\r\nBusiness: 310-831-5555\r\nEmilio Suarez\r\nHome: 787-526-9874\r\nSummerville Land & Lumber\r\nBusiness: 843-519-2697\r\nWinston Tate\r\nHome: 401-246-5879\r\nBethany Taylor\r\nHome: 804-556-0080\r\nMax Taylor\r\nHome: 506-683-4579\r\nMelanie Taylor\r\nHome: 804-556-9801\r\nMichelle Taylor\r\nHome: 506-683-4579\r\nSusan Taylor\r\nHome: 902-555-8525\r\nEmma Terrell\r\nHome: 204-971-5489\r\nLuke Thames\r\nHome: 604-871-2519\r\nThe\\Bean Grinder\r\nBusiness: 513-849-2231\r\nThe\\Chip 'N Dip\r\nBusiness: 914-513-9846\r\nThe\\Computer Warehouse\r\nBusiness: 425-396-1514\r\nThe\\Flower Patch\r\nBusiness: 520-184-7198\r\nThe\\Good Life Assisted Care\r\nFacility\r\nBusiness: 802-771-4587\r\nThe\\Reading Corner\r\nBusiness: 509-471-5454\r\nAlicia Thomas\r\nHome: 206-886-9457\r\nGeorgia Thomas\r\nHome: 206-886-9457\r\nE-mail: georgia.thomas@nset.com\r\nWendy Thomas\r\nHome: 206-886-9457\r\nEdith Thorne\r\nHome: 505-226-9103\r\nEva Tibbetts\r\nHome: 740-884-9565\r\nAndrea Tidwell\r\nHome: 501-227-9144\r\nE-mail: tidwell1@earthnet.com\r\nFax: 501-202-1839\r\nMeredith Tirrito\r\nHome: 718-780-3325\r\nToy World, Inc.\r\nFax: 401-253-2707\r\nTrapman & Associates\r\nBusiness: 937-458-9696\r\nTyler & Hanson Associates\r\nBusiness: 816-849-2512\r\nDavid Underwood\r\nHome: 843-584-9541\r\nE-mail: david.underwood@snt.net\r\nCynthia Urban\r\nHome: 919-828-5456\r\nE-mail: cbu@homenet.com\r\nFax: (828) 698-0270\r\nKelly Vaughn\r\nHome: 514-934-1112\r\nTheresa Vazquez\r\nHome: 802-828-1799\r\nE-mail: tmv@groupmail.net\r\nJane Vincent\r\nE-mail: jlvgal@hotnet.com\r\nNicholas Vincent\r\nHome: 407-896-1210\r\nMichelle Wagner\r\nHome: 402-474-6724\r\nWashington Photography\r\nMuseum\r\nBusiness: 509-842-8104\r\nWesley & Sons\r\nBusiness: 701-928-0019\r\nStella White\r\nHome: 907-757-2221\r\nE-mail: stellawhite@bellnorth.com\r\nNorbert Wilkens\r\nE-mail: nwilkens@de.org\r\nKate Williams\r\nHome: 504-561-2474\r\nWilson Exterminating and Pest\r\nControl\r\nBusiness: 810-597-5501\r\nWilson Exterminating and Pest\r\nControl - West Area\r\nBusiness: 810-921-4470\r\nLajuan Wilson\r\nHome: 912-925-6645\r\nFax: 912-226-8070\r\nRenee Wilson\r\nHome: 912-925-6645\r\nMiles Yang\r\nHome: 785-423-9965\r\nE-mail: may@msnet.com\r\nChristopher Young\r\nHome: 202-877-1125\r\nE-mail: doctors@net.net\r\nCellular: 202-384-3349\r\nFax: 202-548-3004\r\nDianne Ziegler\r\nHome: 203-778-2523\r\nE-mail: daz@aom.net"
In [23]:
nums = re.findall(r'\d\d\d[-]\d\d\d[-]\d\d\d\d' ,text2)
In [24]:
nums
Out[24]:
['808-779-1466',
 '801-557-2819',
 '801-997-4158',
 '843-798-6698',
 '503-233-8335',
 '503-233-0009',
 '612-321-0047',
 '612-393-0029',
 '612-321-0047',
 '612-393-0029',
 '912-927-1215',
 '228-986-5430',
 '207-363-5517',
 '412-565-9978',
 '915-562-2331',
 '773-242-6323',
 '910-634-4821',
 '843-749-0938',
 '404-864-2522',
 '800-555-0909',
 '303-671-3232',
 '800-975-1524',
 '800-948-5212',
 '702-939-2999',
 '706-435-8511',
 '302-798-6260',
 '843-498-5569',
 '402-343-7700',
 '206-587-3010',
 '615-255-7410',
 '843-555-7623',
 '804-741-5241',
 '404-977-5810',
 '206-594-6648',
 '212-545-0010',
 '212-545-0010',
 '415-749-3214',
 '702-939-2999',
 '203-778-2523',
 '802-697-1214',
 '305-326-1551',
 '312-641-0332',
 '312-265-7700',
 '908-648-2111',
 '819-833-9600',
 '801-323-1000',
 '205-566-1254',
 '888-895-6321',
 '205-566-1254',
 '888-895-6321',
 '336-725-6397',
 '505-265-1120',
 '225-765-3314',
 '843-555-4356',
 '603-733-9393',
 '304-754-2217',
 '409-884-5411',
 '414-276-9162',
 '401-949-5454',
 '612-482-3329',
 '216-432-5572',
 '216-721-5300',
 '307-418-0057',
 '307-418-0058',
 '203-421-8712',
 '843-772-0707',
 '843-772-0707',
 '503-895-6262',
 '843-823-2526',
 '843-823-2526',
 '843-823-2526',
 '973-733-1105',
 '214-630-8834',
 '816-549-2158',
 '214-630-8834',
 '270-157-9845',
 '415-353-9157',
 '541-998-7564',
 '401-276-7777',
 '401-253-2707',
 '503-233-0009',
 '704-364-8828',
 '303-997-3301',
 '888-387-1211',
 '312-923-1190',
 '843-469-1218',
 '843-469-1218',
 '802-771-4587',
 '513-621-3702',
 '614-889-9565',
 '219-239-5177',
 '843-766-1578',
 '919-255-9865',
 '202-537-6614',
 '908-432-1185',
 '801-467-8999',
 '204-722-8417',
 '204-722-8417',
 '312-655-8102',
 '773-327-9921',
 '715-232-7154',
 '808-395-5587',
 '843-723-0912',
 '410-523-6671',
 '617-695-3785',
 '302-239-8722',
 '912-376-1125',
 '912-376-1125',
 '843-884-5609',
 '956-728-1597',
 '404-323-6656',
 '215-339-4120',
 '603-474-8080',
 '843-559-4878',
 '407-841-6679',
 '360-922-2457',
 '770-509-0487',
 '401-253-2707',
 '410-557-6438',
 '203-555-0956',
 '501-227-3700',
 '501-202-1839',
 '336-965-8520',
 '541-698-1208',
 '580-699-4521',
 '307-732-1589',
 '416-934-3544',
 '617-499-8814',
 '617-499-8814',
 '615-327-1085',
 '901-765-4642',
 '619-235-9914',
 '505-842-0111',
 '843-889-7478',
 '416-362-8457',
 '604-730-2457',
 '860-242-9912',
 '860-394-2322',
 '316-284-2293',
 '316-284-3663',
 '815-727-9976',
 '912-814-4102',
 '912-226-8070',
 '508-665-9009',
 '605-333-9947',
 '336-288-9548',
 '813-348-5518',
 '617-223-6369',
 '843-881-4799',
 '402-821-6954',
 '402-821-6954',
 '402-821-6954',
 '402-821-6954',
 '704-555-8994',
 '302-618-9874',
 '404-257-9854',
 '607-257-8134',
 '888-387-2000',
 '404-971-2245',
 '404-983-4109',
 '617-426-8598',
 '860-545-7154',
 '503-295-4187',
 '937-233-6266',
 '316-849-5147',
 '919-569-2369',
 '919-255-9865',
 '618-222-9796',
 '843-566-1234',
 '217-457-6628',
 '605-733-5840',
 '212-423-5848',
 '212-423-5848',
 '804-569-6325',
 '312-997-5178',
 '843-989-5256',
 '843-881-9548',
 '843-881-9548',
 '843-555-3106',
 '843-778-2523',
 '502-451-8236',
 '602-832-0987',
 '202-824-6632',
 '510-601-9852',
 '207-332-5849',
 '843-723-9402',
 '843-786-7200',
 '212-566-1965',
 '310-831-5555',
 '787-526-9874',
 '843-519-2697',
 '401-246-5879',
 '804-556-0080',
 '506-683-4579',
 '804-556-9801',
 '506-683-4579',
 '902-555-8525',
 '204-971-5489',
 '604-871-2519',
 '513-849-2231',
 '914-513-9846',
 '425-396-1514',
 '520-184-7198',
 '802-771-4587',
 '509-471-5454',
 '206-886-9457',
 '206-886-9457',
 '206-886-9457',
 '505-226-9103',
 '740-884-9565',
 '501-227-9144',
 '501-202-1839',
 '718-780-3325',
 '401-253-2707',
 '937-458-9696',
 '816-849-2512',
 '843-584-9541',
 '919-828-5456',
 '514-934-1112',
 '802-828-1799',
 '407-896-1210',
 '402-474-6724',
 '509-842-8104',
 '701-928-0019',
 '907-757-2221',
 '504-561-2474',
 '810-597-5501',
 '810-921-4470',
 '912-925-6645',
 '912-226-8070',
 '912-925-6645',
 '785-423-9965',
 '202-877-1125',
 '202-384-3349',
 '202-548-3004',
 '203-778-2523']
In [27]:
names = re.findall( r'[A-Z]{1,3}[a-z]*\s[A-Z][a-z]*\s[A-Z]?[a-z]*' ,text2)
In [28]:
names
Out[28]:
['Sample Phone Directory',
 'AAA Concrete\r',
 'ABC Learning Center',
 'ABC Learning Center',
 'Mark Adamson\r',
 'All Track International',
 'Allison Andrews\r',
 'Dustin Andrews\r',
 'Elizabeth Ashton\r',
 'Lucy Avdeenko\r',
 'Julie Bach\r',
 'Derrick Baker\r',
 'Francis Baker\r',
 'Baldwin Entertainment\r',
 'Barclay Furniture\r',
 'Geoffrey Beckner\r',
 'Kyle Bell\r',
 'Kathleen Bently\r',
 'Joseph Bernstein\r',
 'Timothy Billings\r',
 'Bottling Unlimited\r',
 'Business Information Systems',
 'Jason Campbell\r',
 'Charleston Development\r',
 'City Insurance Company',
 'Zachery Clover\r',
 'Autumn Compton\r',
 'Agnes Cone\r',
 'Benjiman Connor\r',
 'Andrew Crenshaw\r',
 'Ellen Crenshaw\r',
 'Catlin Daly\r',
 'Clara Daniels\r',
 'Davenport Creamery\r',
 'Sean Davenport\r',
 'Lisa Davis\r',
 'Diamond Import ',
 'Angela Diresta\r',
 'Joseph Diresta\r',
 'Ryan Dorrion\r',
 'Collin Dubose\r',
 'Nicole Dustin\r',
 'Dynamic Engineering\r',
 'Anthony Ellis\r',
 'Elohim Synagogue Melissa',
 'Heather Faulkner\r',
 'Jeffrey Ferber George',
 'Foreign Financial Group',
 'Heidt Memorial\r',
 'Paul Frantz\r',
 'Garcia Family Dentistry',
 'Jill Garrett\r',
 'Katherine Garrity\r',
 'Stanley Garrity\r',
 'Frederic Gaskins\r',
 'Allison Goodson\r',
 'Harry Goodson\r',
 'Jeffrey Goodson\r',
 'Betsy Graack\r',
 'Kristy Graham\r',
 'Wade Grayson\r',
 'Dale Green\r',
 'Lisa Haas\r',
 'Alexander Hamilton\r',
 'Samantha Hart\r',
 'Alan Hayes\r',
 'Alan Hayes\r',
 'Cole Hensley\r',
 'Robert Hernandez\r',
 'Jackson Holt\r',
 'Laura Holt\r',
 'Alexander Horne\r',
 'Travis Inman\r',
 'Industrial Supply\r',
 'Dean Isley\r',
 'Claudia Ivery\r',
 'Yoshi Izzo\r',
 'Jefferson Manufacturing\r',
 'Richard Jefferson\r',
 'Gretchen Jones\r',
 'Terry Jones\r',
 'Hampton Judson\r',
 'Lorrel Justin\r',
 'Phillip Keller\r',
 'Bebe Kemp\r',
 'Jennifer Kennick\r',
 'Marilyn Kessler\r',
 'David Korbin\r',
 'Jennifer Kovalak\r',
 'Spencer Kovalak\r',
 'Marianne Lambert\r',
 'Roger Langley\r',
 'Lightning Air Transport',
 'Audrey Lorenz\r',
 'Kimberly Luton Joseph',
 'Isabelle Matley\r',
 'Martha Mellon\r',
 'Midland Banking Center',
 'Midlands Historical Museum',
 'Cynthia Miller\r',
 'Otto Montgomery\r',
 'Virginia Morrison\r',
 'Olympus Medical Center',
 'David Murphy\r',
 'Margaret Murphy\r',
 'Nashville Healthcare\r',
 'Porter Nelson\r',
 'New Mexico Gas',
 'Lavern Nivens\r',
 'Marlena Nodason\r',
 'Dale Nolan\r',
 'North General Hospital',
 'Oak City Symphony',
 'Chloe Ohar\r',
 'Oil One Distributor',
 'Vivian Olson\r',
 'Neil Osborne\r',
 'Outside Investments\r',
 'Grace Overstreet\r',
 'Kenneth Parker\r',
 'Madison Parker\r',
 'Partytime Rentals\r',
 'Mia Patras\r',
 'Chad Patterson\r',
 'Lane Pembroke\r',
 'Pennsylvania Glass ',
 'Nancy Peters\r',
 'Campbell Phan\r',
 'Drug Store\r',
 'Sidney Prescott\r',
 'William Quinn\r',
 'Keith Radcliffe\r',
 'Mohammed Rahman\r',
 'Scarlett Ray\r',
 'RCS Corporation\r',
 'Carl Rhodes\r',
 'Jenny Rhodes\r',
 'Kyle Rhodes\r',
 'Mary Beth Richardson',
 'Ginger Rosenberg\r',
 'Ira Rosenberg\r',
 'Harris Sadler\r',
 'Heidi Schapiro\r',
 'Martin Schultz Monica',
 'Mary Simpson\r',
 'Anne Sinclair\r',
 'Joseph Sinclair\r',
 'Harold Smalls\r',
 'John Smith\r',
 'Stephanie Smith\r',
 'Tenli Smyth\r',
 'Daniel Snyder\r',
 'South Carolina Blood',
 'South Carolina Transporation',
 'Southern Telegraph Company',
 'Star Mission Shelter',
 'Emilio Suarez\r',
 'Summerville Land ',
 'Winston Tate\r',
 'Bethany Taylor\r',
 'Max Taylor\r',
 'Melanie Taylor\r',
 'Michelle Taylor\r',
 'Susan Taylor\r',
 'Emma Terrell\r',
 'Luke Thames\r',
 'Bean Grinder\r',
 'N Dip\r',
 'Computer Warehouse\r',
 'Flower Patch\r',
 'Good Life Assisted',
 'Reading Corner\r',
 'Alicia Thomas\r',
 'Georgia Thomas\r',
 'Wendy Thomas\r',
 'Edith Thorne\r',
 'Eva Tibbetts\r',
 'Andrea Tidwell\r',
 'Meredith Tirrito\r',
 'Hanson Associates\r',
 'David Underwood\r',
 'Cynthia Urban\r',
 'Kelly Vaughn\r',
 'Theresa Vazquez\r',
 'Jane Vincent\r',
 'Nicholas Vincent\r',
 'Michelle Wagner\r',
 'Washington Photography\r',
 'Stella White\r',
 'Norbert Wilkens\r',
 'Kate Williams\r',
 'Wilson Exterminating and',
 'Wilson Exterminating and',
 'West Area\r',
 'Lajuan Wilson\r',
 'Renee Wilson\r',
 'Miles Yang\r',
 'Christopher Young\r',
 'Dianne Ziegler\r']
In [30]:
len(names)
Out[30]:
199
In [33]:
email = re.findall( r'E-mail:\s\w*@\w*.\w*' ,text2)
In [34]:
email
Out[34]:
['E-mail: madamson@sncn.net',
 'E-mail: AEA@anet.com',
 'E-mail: AEA@anet.com',
 'E-mail: jules@att.com',
 'E-mail: djb1@homenet.com',
 'E-mail: fbaker@elpaso.com',
 'E-mail: consultgrp@netcore.com',
 'E-mail: dalycatren@msn.com',
 'E-mail: sad@net.com',
 'E-mail: adiresta@aol.net',
 'E-mail: JPdiresta@net.com',
 'E-mail: frhhospital@amc.org',
 'E-mail: dag@homeplace.com',
 'E-mail: ach@home.net',
 'E-mail: rhernandez@net.com',
 'E-mail: trinman@cmsn.net',
 'E-mail: bdk@mbn.net',
 'E-mail: dkorbin@allouette.com',
 'E-mail: JenAnne@Conelink.net',
 'E-mail: mig@homeweb.com',
 'E-mail: KR8989@dbc.org',
 'E-mail: MBRichardson@abc123.com',
 'E-mail: joesinc@home.com',
 'E-mail: tenli_smyth@home.com',
 'E-mail: tidwell1@earthnet.com',
 'E-mail: cbu@homenet.com',
 'E-mail: tmv@groupmail.net',
 'E-mail: jlvgal@hotnet.com',
 'E-mail: stellawhite@bellnorth.com',
 'E-mail: nwilkens@de.org',
 'E-mail: may@msnet.com',
 'E-mail: doctors@net.net',
 'E-mail: daz@aom.net']
In [36]:
len(email)
Out[36]:
33
In [37]:
import jovian
In [ ]:
jovian.commit()
[jovian] Saving notebook..
In [ ]: