Forum Moderators: coopster
Something like this:
$pattern = "/([^\s\w]*)/i";
$string = "Some text, here, #*$!, yyy aaaa";
$new_str = preg_replace($pattern,'',$string);
$words = explode(' ',$new_str);
$count = count($words);
for($i = 0;$i < $count; $i++) {
echo '<a href="'.$words[$i].'">'.$words[$i].'</a><br />';
}
*This is untested. You will have to mess around with it*
Good luck!