#!/bin/bashs='AAAAAAA02'echo $s | sed -E "s|(A{7})[0-9]+|\101|g"
Standard input is empty
AAAAAAA01
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!