replace each word with specific word javascript regex
<p>I am trying to replace every word in a string with a certain word.</p>

<pre><code>var str = "hello how are you can you please help me?";
</code></pre>

<p>and wish to arrive at the following</p>

<pre><code>answer = "bye bye bye bye bye bye bye bye bye bye";
</code></pre>

<p>Currently, I have </p>

<pre><code>var answer = str.replace(/./g, 'bye');
</code></pre>

<p>which changes each letter to <code>bye</code>. How do I change it so that it just targets each word, and not each letter?</p>