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