forse xche dovresti scrivere ereg("\{QUERY_STRING\[([[:alnum:]]{1,99})\]\}", .... se vuoi considerare { come un carattere.
Regole del Forum