Skip to content

A PowerShell script that will provide you the Regex syntax for matching an IP range

Notifications You must be signed in to change notification settings

luisfeliz79/PowerShell-IPrange-Regex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

PowerShell-IPrange-Regex

A PowerShell script that will provide you the Regex syntax for matching an IP range

To use this script:

To get regex syntax for a Single IP:
   .\IPrangeRegex.ps1 -IPRange 192.168.10.1

To get regex syntax for a range in format startrange-endrange
   .\IPrangeRegex.ps1 -IPRange 192.168.10.0-192.168.10.255

To get Regex syntax for a range in CIDR Format
   .\IPrangeRegex.ps1 -IPRange 192.168.10.0/21

Note: Subnet masks < 19 may take some time to calculate.

About

A PowerShell script that will provide you the Regex syntax for matching an IP range

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published