[英]Detecting emails and social media accounts in text with C#
I am creating some kind of social platform that people have to pay to use it.我正在创建某种社交平台,人们必须付费才能使用它。 I am supposed to not allow anyone to write their email address, social media account username (eg Instagram username) or their phone number).我不应该允许任何人写下他们的电子邮件地址、社交媒体帐户用户名(例如 Instagram 用户名)或他们的电话号码。
Scanning every single profile update manually will be a cumbersome and costly operation so I am thinking of a way to find and remove such contact details, at least to some extent.手动扫描每个个人资料更新将是一项繁琐且成本高昂的操作,因此我正在考虑一种方法来查找和删除此类联系方式,至少在某种程度上是这样。
I have used regext to find the @ character but that will not really work as users can easily ignore the @ character!我已经使用 regext 来查找 @ 字符,但这不会真正起作用,因为用户很容易忽略 @ 字符!
Is there a library that I can use for this porpuse?有没有我可以用于这个豪猪的图书馆?
Just like @Robert Harvey noted, it's a pretty hopeless task.就像@Robert Harvey 指出的那样,这是一项非常无望的任务。
Some recommendations you can use:您可以使用的一些建议:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.