in reply to Is there a way I can substitute for ":" except when it is preceded by a letter C
Use a negative look-behind assertion.
$str =~ s/(?<!C):/"/g ;
Those who know that they are profound strive for clarity. Those who
would like to seem profound to the crowd strive for obscurity.
--Friedrich Nietzsche
|
|---|