On Thu, 2014-09-18 at 16:31 -0500, Chris Kottaridis wrote:
if [[ $val =~ '/^[A-Fa-f0-9]+$/' ]] ; then
echo is hex
else
echo is not hex
fi
You don't need the / or '
Also, this isn't searching for any hex string, it's searching for lines
consisting only of a single hex string.
poc