Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
#! /bin/bash
RESULT='{"1421445558":0}'
if [[ $RESULT =~ ^\{\"\d{10}\":0\}$ ]]
then
echo "It works!"
else
echo "It's broken :("
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment