- You can remove the %match variable altogether and just make it the comparison, the '>= 1' isn't required since the result will automatically be treated as true if it's a non-zero result.
- If there's only one line to be run if the condition is true then you can put that on the same line and remove the braces ({ }) aswell.
- Your regex can be simplified to /(footext.(?:1|2|3))/i if you wanted.
Code:
check {
unset %result
if ($regex($1,/(footext.(?:1|2|3))/i)) set %result 1
}


Spelling mistakes, grammatical errors, and stupid comments are intentional.