#!/bin/bashecho "2001:0Db8:85a3:0000:8a2e:0370:7334" | grep "^\([0-9a-fA-F]\{0,4\}:\)\{1,7\}[0-9a-fA-F]\{0,4\}$"
Standard input is empty
2001:0Db8:85a3:0000:8a2e:0370:7334
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!