in reply to replace first occurance if it doesn't already match
use warnings; use strict; while (<DATA>) { s/(\d)_/$1:/; print; } __DATA__ V12345:name_test V12345_name_test
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: replace first occurance if it doesn't already match
by ddrew78 (Beadle) on Mar 10, 2017 at 16:32 UTC |