Data Protection etc.... shouldn't be there.
How do I find credit card numbers buried amongst any length of text.
Googling finds credit card validation claims, which are too complicated.
I need to find groups of numbers that resemble credit card numbers.
I think the criteria is 13 - 24 digits in groups of 4 or 5
seperated by spaces or dashes or bunched together.
It looks like a regex using PATINDEX is the answer but regex is black magic to me
Have I got this right and could I please have some pattern suggestions?
How do I find credit card numbers buried amongst any length of text.
Googling finds credit card validation claims, which are too complicated.
I need to find groups of numbers that resemble credit card numbers.
I think the criteria is 13 - 24 digits in groups of 4 or 5
seperated by spaces or dashes or bunched together.
It looks like a regex using PATINDEX is the answer but regex is black magic to me
Have I got this right and could I please have some pattern suggestions?
Code:
SELECT notes FROM cust_order WHERE PATINDEX('pattern',notes) > 0
Comment