title: * sign in regexp forces to match a letter
body: <p>I want to match a word and 0 or more letters after it. I have constructed the following <code>RegExp</code>: <code>/test\w*/</code><br>
  <code>\w</code> for any letter, <code>*</code> for zero or more match.<br>
  However it works incorrectly. It matches <strong>testing</strong> <strong>tests</strong>, but not <strong>test</strong> itself.
  Here is the code I am using for testing:</p>
  
  <pre><code>console.log(new RegExp("test" + "[\\w*]").test("tests")); // true
  console.log(new RegExp("test" + "[\\w*]").test("test")); // false - should be true
  console.log(new RegExp("test" + "[\\w*]").test("test-")); // false
  console.log(new RegExp("test" + "[\\w*]").test("testing")); // true
  console.log(new RegExp("test" + "[\\w*]").test("test@")); // false
  </code></pre>
  
  <p><strong>Update</strong>
  The expression works exactly as I wanted in <a href="http://regexr.com/" rel="nofollow">regexr.com</a></p>