fork(1) download
  1. #!/bin/bash
  2. echo "AB345678" | sed -n '/^\([a-zA-Z]\{2\}[0-9]\{6\}\|[0-9]\{8\}\)$/p'
Success #stdin #stdout 0s 5080KB
stdin
Standard input is empty
stdout
AB345678