Это?
<script> postText = "this is a #bla and a #bla plus#bla" var regexp = /\#\w\w+\s?/g postText = postText.replace(regexp, ''); alert(postText) </script>