Created
May 3, 2022 08:18
-
-
Save pilotmoon/e477dbf62abedd2a1fb55ab2c4745627 to your computer and use it in GitHub Desktop.
PopClip Snippet: Lowercase, and remove colons
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for this. I have used it often. I did modify the title to be MAC though.