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 -- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org