<p>Раз Два Три</p> <script type="text/javascript"> var o=document.getElementsByTagName('p')[0]; o.innerHTML=o.innerHTML.replace(/(^|\s)(.)/gi,'$1<b>$2</b>'); </script>