<?php

echo preg_replace('#\*([a-z]+)\*#', '<em>$1</em>', 'This *text* is *italic*');