title: In python, how do i extract a sublist from a list of strings by matching a string pattern in the original list
body: <p>How do i return a sublist of a list of strings by using a match pattern. For example I have</p>
  
  <pre><code>myDict=['a', 'b', 'c', 'on_c_clicked', 'on_s_clicked', 's', 't', 'u', 'x', 'y']
  </code></pre>
  
  <p>and I want to return:</p>
  
  <pre><code>myOnDict=['on_c_clicked', 'on_s_clicked']
  </code></pre>
  
  <p>I think list comprehensions will work but I'm puzzled about the exact syntax for this.</p>