I'm using re.search to search for the pattern of anything that might look like a credit card number in a file.
What I would like to do, is have the script then pull out the potential cc number and pass it to the Luhn algorithm for verification.
If I'm not mistaken, re.search only returns true or false. How can I pull out the cc number and set it to a variable?
Thanks.
Jason