【发布时间】:2018-12-03 18:26:52
【问题描述】:
我有一个格式如下的文本文件
======= Account Info =======
email.example@gmail.com:examplepass
Subscription:sub Type
Expiration date:12/21/18
Country:US
Renew Charge:$14.99 + tax
DOB:8/18/73
Created By Athena
============================
======= Account Info =======
email.emaple2@yahoo.com:passExample00
Subscription:sub Type
Expiration date:12/5/18
Country:US
Renew Charge:$14.99 + tax
DOB:8/5/74
Created By Athena
============================
如何使用正则表达式来获取电子邮件:以这种格式传递
email.example@gmail.com:examplepass
email.emaple2@yahoo.com:passExample00
【问题讨论】:
-
您需要使您的要求更加精确——该行是否总是以“电子邮件”开头?或者电子邮件和密码都是完全动态的?还有哪些字符是允许/不允许的?
-
完全动态。两者都允许使用所有字符
-
你可能想编辑你的问题并添加这个(非常重要的)细节。
标签: regex notepad++ text-files