#!/bin/bashs='Sims, J- PF 45Samanic, L- PF 91Noel, N- C 3'sed -E 's/^([^,]+), ([[:upper:]])[^0-9]*([0-9]+).*/uniform number for \2. \1: \3/' <<< "$s"
Standard input is empty
uniform number for J. Sims: 45 uniform number for L. Samanic: 91 uniform number for N. Noel: 3
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!