my $s='aAaAaAaAaAaAAAAaaa'; substr( $s, 1+index( $s, 'A' ) ) =~ s[A][a]g; print $s; aAaaaaaaaaaaaaaaaa [download]
In reply to Re: replace all but first by BrowserUk in thread replace all but first by texuser74