The regex should still "work" when $symbol is a comma. Maybe you should show us some input data, one string where it succeeds and one where it fails, and also the values for $symbol.
In reply to Re: Regex help
by Corion
in thread Regex help
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |