I have a **URL parameters** in a variable like 

`a=44&search=My World`

here I want to do a pattern matching like

```
if [ $a =~ "search" ] ;
then
   value=1
else
   value=0

fi

```

But it is not working in KSH script.