Skip to content

Tag: 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)

SweetAlerts2 & ServiceNow

What if we could use the beautiful SweetAlerts popup’s together with ServiceNow – wouldn’t that be awesome? This is something I used as a hobby project about a year ago to get better knowledge on SweetAlerts but also on some specific (missing?) ServiceNow features. Description from their own site: “A beautiful, responsive, customizable, accessible (WAI-ARIA)…

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