Skip to content

Category: Development

Posts related to development

Validate MAC Address with JS & regex

Simple JavaScript function with some regex used to validate a MAC Address format. Used this on ServiceNow instances and before that as a PowerShell function on Microsoft environments. Example of usage (wrong mac format) Example of usage (correct mac format)

Validate IP address with JS & regex

This is just a simple JavaScript function with some regex used to validate an IP Address format. Used this on ServiceNow instances and before that as a PowerShell function on Microsoft environments. Example of usage (wrong ip format) Example of usage (correct ip format)

© 2020 Tech[Net] | Crafted with ♥ by Morten & rollin' on Author