First, note that your code is a little garbled because you didn't put it within code tags.
For your problem, is it because you have $country_array[224} with a closing brace, not bracket?
In reply to Re: Using array variable in regex substitution
by hbm
in thread Using array variable in regex substitution
by tunafish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |