$data = ereg_replace("(\[[A-Za-z0-9]\])","", $data);
should replace all instances of:
[alpha-num]
with nothing... doesnt seem to be working
Put a + or a * after the 0-9] Plus means one or more. Asterisk means zero or more.
Your regexp actually works fine when there is exactly ONE alpha-num in between square brackets (for example, [a] ) but it fails if there are more than one.
hah... always the simple things... is there a good program out there that writes regex's based on input? ive been to several regex sites... but it always seems like regex's confundle me
http://www.regular-expressions.info/reference.html