检测信用卡号码的文本 [英] Detecting credit card numbers in text

查看:96
本文介绍了检测信用卡号码的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找到一个组件或将检测文本不同类型的信用卡号码的方法。

I'm trying to find a component or a method which will detect credit card number of varying types in text.

我发现了很多信息,验证信用卡号码,但我需要能够利用文本如的身体一个网页,并检查是否信用卡号码,银行账户号码及或排序codeS是present。

I've found a lot of information on validating a credit card number but I need to be able to take a body of text e.g. a web page and check to see if credit card numbers, bank account numbers and or sort codes are present.

有谁知道一个组件,它可以帮助商用或以其他方式?特别是我的平台是.NET C#,但如果有谁知道在其他技术的解决方案,这将是很好的知道这些的存在。

Does anyone know of a component that can help commerical or otherwise? Specifically my platform is .net c# but if anyone knows of solutions in other technologies it would be good to know those are there.

感谢您的帮助。

推荐答案

这需要一个正规的前pression:)

This demands for a regular expression :)

检查该网页。 HTTP://www.regular-ex$p$pssions .INFO / creditcard.html ,尤其是部分寻找信用卡号码的文档。 (虽然你可能会发现一些假阳性,如果寻找16位-数字。)

Check this page http://www.regular-expressions.info/creditcard.html, especially the part "Finding Credit Card Numbers in Documents". (Though you'll probably find some false positives if looking for 16-digit-numbers.)

这篇关于检测信用卡号码的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆