I am not sure of all the ins and outs of what you need the script for, but the following is better than what I posted earlier and easier to understand.
PHP Code:
<?php
$text = "<strong>34D-2.348</strong>";
$text = preg_replace('/strong>\s?([\w\-]{1,}\.[\w\-]{1,})(?!\.)\s?<\/strong/','strong>stock # $1</strong',$text);
echo "$text";
?>
Well, maybe not better, but I find it easier to understand. They both do pretty much the same thing, but this one is somewhat stricter about being between <strong> tags.
Bookmarks