Regular Expression for IPv4 subnet

42 Views Asked by At

I am trying to create a regular expression for the IP subnet 192.168.224.0/22. The valid IP range is 192.168.224.1 to 192.168.227.254.

I can use this in Sentinel KQL query. Is the below correct?

192\.168\.(22[4-7]|23[0-6])\.(25[0-4]|2[0-4][0-9]|[01]?[0-9][0-9]?)
0

There are 0 best solutions below