title: Using Tcl to create a filtered list from an existing list using a pattern in Tcl
body: <p>My goal is to take a an existing list and then create a filter list based on a specific pattern. I do not want to use a for loop or while loop.</p>
  <p>Example of what I want</p>
  <pre><code>set existing_list [list &quot;color_blue12312&quot; &quot;color_blue32311&quot; &quot;color_green123j11&quot; &quot;color_green234321&quot; &quot;color_purple213123&quot; &quot;color_purple234234234&quot;]
  
  set purple_list [lsearch existing_list color_purple*]
  puts $purple_list 
  </code></pre>
  <p>This should print in the terminal:</p>
  <pre><code>color_purple213123 color_purple234234234
  </code></pre>