in reply to Re: Quantified Regex Replacement
in thread Quantified Regex Replacement
Still my regex below doesn't do it right, it also removes two Cs in between:my $str = "TGC[CCC]CC[TTT]"; # Into my $rep = "TG[CCCCCTTT]";
$str =~ s/\]([ATCG]+)\[//;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Quantified Regex Replacement
by japhy (Canon) on Feb 23, 2006 at 14:48 UTC |