title: strings / substrings matching in tcsh
body: <p>I'm struggling trying to use a concise comparison statement to avoid a bunch of "if a = b or a = c or a = d or a = e", etc.</p>
  
  <p>Instead, I'm trying to use regex and pattern matching like you would do in perl.</p>
  
  <p>with</p>
  
  <blockquote>
    <p>set st = "red"</p>
  </blockquote>
  
  <p>the line</p>
  
  <blockquote>
    <p>if ($st =~ yellow|blue|red|green)</p>
  </blockquote>
  
  <p>just doesn't work (if: Expression Syntax.)
  I tried with quotes, parenthesis, but I never get the expected result, if no error.</p>
  
  <p>is there a way to avoid the heavy construct:</p>
  
  <p>if ($st == yellow) || ($st == blue) || ($st == red) || ($st == green) ?</p>
  
  <p>Or another way to ask the same question: does tcsh allow for something like "if string a contains string b"? I couldn't find any notion of substring in tcsh reference.</p>
  
  <p>Thanks a million!</p>