if($class eq 's' | $class eq 'x' | $class eq 'u'){
Note that | is a bit-wise OR, you probably meant || which is a logical OR.
Cheers,
JohnGG
In reply to Re: strange behavior of regex
by johngg
in thread strange behavior of regex
by biologistatsea
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |