in reply to How to insert a "/" within a string?
In this case,
s{CO}{C/O}g
would do. If there's a chance of overlap between the two patterns to separate (e.g. putting "/" between "AC" and "CA"), you need a lookahead.
s{AC(?=CA)}{AC/}g
or
s{AC\K(?=CA)}{/}g
|
|---|