Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 138
  • Last Modified:

Regex code:separate email:ip from email:pass ?

Regex code:separate email:ip from email:pass ?
0
ryan wiliams
Asked:
ryan wiliams
1 Solution
 
pritaeasSoftware EngineerCommented:
Can you show an example of your input string?
0
 
Kim RyanIT ConsultantCommented:
Can you show some sample data?
0
 
Pawan KumarDatabase ExpertCommented:
sample example pls?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
ryan wiliamsAuthor Commented:
michael@yahoo.com:sdfdsf
miamiheat@hotmail.com:120.120.25.101
eu@hotmail.co.uk:saffvdgbfd

output:

miamiheat@hotmail.com:120.120.25.101
0
 
pritaeasSoftware EngineerCommented:
.+:\d+\.\d+\.\d+\.\d+

Open in new window


This takes all texts that start with at least one character, followed by a colon, followed by four digit groups. You can put more restrictions in place if you want, but this should get you started.
0
 
ryan wiliamsAuthor Commented:
thank you
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now