<?php echo preg_replace('#\*(\p{L}+)\*#', '<em>$1</em>', 'This text has *two* *italic* bits');
Standard input is empty
This text has <em>two</em> <em>italic</em> bits
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!