title: Pattern matching in ksh script
body: <p>I have a <strong>URL parameters</strong>  in a variable like </p>
  
  <p><code>a=44&amp;search=My World</code></p>
  
  <p>here I want to do a pattern matching like</p>
  
  <pre><code>if [ $a =~ "search" ] ;
  then
     value=1
  else
     value=0
  
  fi
  </code></pre>
  
  <p>But it is not working in KSH script.</p>