9 May
2025
9 May
'25
10:02 a.m.
Hi David,
[[ $1 =~ ^([^.]{1,3})[.]([^.]{1,3})[.]([^.]{1,3})[.]([^.]{1,3})$ ]] ... [[ $1 =~ ^([^.]{1,3})[.]([^.]{1,3})[.]([^.]{1,3})[.]([^.]{1,3})/(.*)$ ]] ... $ ipsa 38.0.0.0/8 ... parsed the IP as 38 0 0 0/8 (with the "/8") instead of 38 0 0 0
I doubt your understanding is correct. I think it more likely the ‘0/8’ this time was short enough to match /([^.]{1,3})$/ in the first regexp and either: - it has never been short enough in the past, e.g. ‘0/24’, or - they've slipped through but not triggered an error for you to notice, e.g. ipset's hash table didn't fill up. -- Cheers, Ralph.