Skip to content

Instantly share code, notes, and snippets.

@davidlinse
Created December 6, 2016 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidlinse/0aeea0b7bc384b065c63cc15e3726005 to your computer and use it in GitHub Desktop.
Save davidlinse/0aeea0b7bc384b065c63cc15e3726005 to your computer and use it in GitHub Desktop.
if [[ "foo.xml" =~ ^.+\.(xml)$ ]]; then echo "X"; else echo "Y"; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment