Last active
July 12, 2019 07:12
-
-
Save ishikawa/c51cb844545cc9364ce04dea242a0b61 to your computer and use it in GitHub Desktop.
Convert phrase to kebab-case
This file contains hidden or 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
# Type your phrase then ^D | |
perl -pe 'chop;s/([a-z]+)/lc($1)/ige' | perl -lpe 's/[^a-z0-9]+/-/ig' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment