4 ms·
Serious question - is there anything fundamentally wrong with using regex here?
by bpchaps 7y ago
Serious question - is there anything fundamentally wrong with using regex here?
- jasonshaev 7y agoFor the specific example cited (credit card numbers) the Luhn check is very standard. So, no there isn't :)
- gcbw3 7y agoSo you might have more fun with this email one https://github.com/microsoft/presidio/blob/master/presidio-analyzer/analyzer/predefined_recognizers/email_recognizer.py https://github.com/microsoft/presidio/blob/master/presidio-a... :) ... seriously, they should have broken that down, or used the multi-line with comments pattern, if they really want people to contribute to this.
- bpchaps 7y agoYeah, seriously. Are email addresses even regular to the extent that a regex would work 100% of the time?