Not sure about how to use it in
Struts, but this regexp seems better:
^(abc|xyz|ghi)
As an aside, "this did not work" is a rather deficient description of a problem.
How did it not work - was the validation used, but the regexp didn't capture what you thought it would capture? Or was the validation never used? Or something else?
[ February 22, 2006: Message edited by: Ulf Dittmer ]