title: Find all words in a string that start with the $ sign in Python
body: <p>How can I extract all words in a string that start with the $ sign? For example in the string</p>
  
  <pre><code>This $string is an $example
  </code></pre>
  
  <p>I want to extract the words <code>$string</code> and <code>$example</code>.</p>
  
  <p>I tried with this regex <code>\b[$]\S*</code> but it works fine only if I use a normal character rather than dollar.</p>