Please help me with PHP problem!
Stuck on another problem. I have ip ranges in the format:
127.0.0.0 - 127.0.0.5 192.168.0.1 -192.168.0.5 192.168.0.6 - 192.168.0.9
So beginning number then 'space dash space' ending number space next beginning number...
I have a massive load of these as I am playing around with geo services.
But I cannot break them into an array. I'm guessing the easiest way is to use something like preg_split and set 'digit, space, digit' as the pattern (as the only times in the file the pattern 'digit, space, digit' appears is between two different ranges). I have no idea how to write these 'patterns' though, so if somebody could please help me out as I have been trying for hours now and its beginning to bug me!
Cheers In A