in reply to More Regexp Confusion
G..O..A..T GaaOaaAaaT GabcOabcAabcT G<<<<<O<<<<<A<<<<<TIf this assumption is correct, this is a possible way (yet quite inefficient) to handle it:
my @foo = split //, $foo; $foo = shift(@foo) . q{(.*?)} . join q{\2}, @foo; while ( my $line = <FH> ) { s/($foo)/$stuff1$1$stuff2/g; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: More Regexp Confusion
by mdunnbass (Monk) on Feb 01, 2007 at 22:29 UTC |