Skip to content

Instantly share code, notes, and snippets.

@circa10a
Created December 18, 2017 20:51
Show Gist options
  • Save circa10a/1f161913a785401b5e1f88f346a5863f to your computer and use it in GitHub Desktop.
Save circa10a/1f161913a785401b5e1f88f346a5863f to your computer and use it in GitHub Desktop.
bash regex
[[ $input=~ [A-Za-z0-9-]+\/[A-Za-z0-9-]+\:[A-Za-z0-9-]+ ]]; then
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment