3 ms·
Mine is perl, for which the guts is m/"name":(".*?").*"creditcard":("\d{4}(-\d{4}){3}")/ && print "$1,$2\n" i.e. if we we match what looks like a credit c
by emmelaich 12y ago
Mine is perl, for which the guts is
m/"name":(".*?").*"creditcard":("\d{4}(-\d{4}){3}")/ && print "$1,$2\n"
i.e. if we we match what looks like a credit card in the credit card field then write the name and credit card.
The other only slightly tricky thing is the use of minimal match for the name field -- the ? after the *.