Using regular expressions find all phone numbers and credit card numbers in the file findPhoneCC.txt in your Files folder. Place all found phone numbers and credit card numbers into separate lists (one list for phone numbers and another list for credit card numbers). Find which Dr. Who villains are listed in the file and place them into a list. Among the possible are: Mara, Rani, Zygon, Davros, Dalek, and Monk. Using the lists, write all elements of the lists to a new file.
Regular Expressions in Files (find all phone numbers and credit card numbers)
Regular Expressions in Files (find all phone numbers and credit card numbers)
|
Dec-05-2017, 06:22 AM
We need to use your attempt. "Do it for me"-looking posts are unlikely to get helpful responses.
Dec-05-2017, 09:48 AM
Write possible Credit-Card numbers down (not here). Compare which digits/chars are used where and how much of them.
Learn regex. A good place to start and test your possible regex is here: https://regex101.com/
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians! |
|
Users browsing this thread: 2 Guest(s)