Using the solution given above:
13:09 >perl -wE "my $s = 'EVO:001 xyz345 EVO:456'; $s =~ s/(EVO:)(\d+) +/$1.++($_=$2)/eg; say $s;" EVO:002 xyz345 EVO:457 13:13 >
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
In reply to Re^4: Increment a string with letters and numbers
by Athanasius
in thread Increment a string with letters and numbers
by mrguy123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |