[code=php]<?PHP $category = "32" ; if (!preg_match("/^=|!=|<>|<|>/",$category)) { $category = "=".$category; } echo $category; ?>[/code]What the regexp does is check if the variable starts with any of the characters, and if it does not (due to the ! at the beginning of our if statement) it will concatenate a = to the beginning of the string.