<?php $str = "Je connais ce con de conémi"; echo preg_replace("/(?<=\p{Z})con(?=\p{Z})/i", "###", $str);
Standard input is empty
Je connais ce ### de conémi
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!