> > $new_file =
> preg_replace('/\b(?<!\[sample\]|\[)(\w+)(?!\[\/sample\]|\])\b/',
> > ' [tag]$1[/tag] ', $new_file);
> >Replace the \w+ by [a-bA-Z]+ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

