in reply to Reaped: Re^2: regex testing for multiple values
in thread regex testing for multiple values

...all I get is a syntax error mismatched right bracket

That's not what I get when I run your snippet (commenting out the do something lines). I get:

syntax error at [...] line 12, near "{"

where lines 12-13 are:

elsif {

Did you perchance mean else rather than elsif?