RosettaCodeData/Task/Regular-expressions/AWK/regular-expressions-4.awk

4 lines
59 B
Awk

$ awk '{gsub(/[A-Z]+/,"(&)");print}'
abCDefGH
ab(CD)ef(GH)