Hi,
I am trying to grep for the following type of string from a document given below:
12637 1239 3356 12956 7004 7004 7004 13381 13381
*> 12.0.1.63 0 7018 21872 ?
* 208.51.134.254 53 0 3549 7018 21872 ?
* 202.232.0.2 0 2497 7018 21872 ?
* 134.222.85.45 0 286 3549 7018 21872 ?
* 202.249.2.86 0 7500 2497 7018 21872 ?
* 209.10.12.125 4103 0 4513 13789 3549 7018 21872 i
* 216.218.252.164 0 6939 3549 7018 21872 i
* 203.181.248.168 0 7660 2516 209 7018 21872 ?
* 64.71.255.61 0 812 3549 7018 21872 i
* 12.47.220.0/22 193.0.0.56 0 3333 3356 7018 21872 i
There could be any number of such numbers in a line. I am a little confused on writing a regex for this. Could someone please help me out?
[0-9]{1,6}
looks ok for a single number but how do I do that for repetitions of such numbers?