troubleshooting Question

Regular Expression Needed

Avatar of JimmyJJ
JimmyJJ asked on
Perl
9 Comments1 Solution256 ViewsLast Modified:
Hey,

I have a string which contains a text file, I want to extract all IP numbers and its port from the text file.
Example of text file:

line1: GHDGH 124:123:123:123:80 DGSH
line2: SJSJQHSDHDSH HDSHDHS HDHS 12:123:12:1:80

And now it simply needs to extract the ipnumbers and its port and put it in an array which will then look like:
("124:123:123:123:80","12:123:12:1:80").

Thank you very much.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros