Skip to content

Instantly share code, notes, and snippets.

@pilotmoon
Created May 3, 2022 08:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pilotmoon/e477dbf62abedd2a1fb55ab2c4745627 to your computer and use it in GitHub Desktop.
Save pilotmoon/e477dbf62abedd2a1fb55ab2c4745627 to your computer and use it in GitHub Desktop.
PopClip Snippet: Lowercase, and remove colons
# The brief:
# So, I have to convert MAC addresses from time to time into a format that our network/server guys want,
# which means converting to lowercase and removing the colons in the address. Is that something that could be worked up?
#
# Instructions: Select all the text below, starting with '#popclip'. The click the 'Install Extension' action in PopClip.
# popclip
name: Process MAC Address
title: mac
after: paste-result
javascript: return popclip.input.text.replace(/:/g, '').toLowerCase()
@dbousson
Copy link

Thank you for this. I have used it often. I did modify the title to be MAC though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment