puts "pack: my box with five: dozen: liquor: jugs ::: :".gsub(/(?<!ack|zen):/, ";")
Standard input is empty
pack: my box with five; dozen: liquor; jugs ;;; ;
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!