in reply to Complex Regex
use warnings; use strict; while (<DATA>) { chomp; s/ ^ [0-9a-z]{3} $ /hi/xi; print "$_\n"; } __DATA__ ABC GHR 1DF uy6 fore
See also:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Complex Regex
by Anonymous Monk on Jul 13, 2012 at 13:52 UTC |