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 ;

_______________
DamnDirtyApe
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
  • Comment on Re: Is there a way I can substitute for ":" except when it is preceded by a letter C
  • Download Code