if (/[0-9a-f]\{4/ or /8\}/} { print "matched\n"; }