Just think about what you are looking for and work from there. How do you as a human pick out IP addresses? Now how can you define that in a regex?
Don't worry if it's a valid IP since you maybe able to assume that the source already has done some of that for you. If you do want to make sure you only get valid IP then as already suggested, check CPAN. (Or work it out for yourself as a nice exercise.)
In reply to Re^3: Extract IP from email dataset?
by tweetiepooh
in thread Extract IP from email dataset?
by bharadwajh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |