Thread:Extension talk:SemanticFormsSelect/Barfs on properties with certain characters/reply (2)

$query=preg_replace('/(?<!\\\\)\\(/','[',$query);   $query=preg_replace('/(?<!\\\\)\\)/',']',$query); $query=preg_replace('/\\\\\\(/','(',$query); $query=preg_replace('/\\\\\\)/',')',$query);

For anyone who faces a similar problem, these lines should replace the lines at ~97 and 98 that look like this: $query=str_replace("(", "[", $query);   $query=str_replace(")", "]", $query);

This will enable you to use backslashes ('\') to escape your parentheses.