Selection rules by comments with symbols

Hello, i have a question, it´s possible to switch off Mikrotik for selected group of rules by name in comment with regular expresion.

I have a rules in mangle with comment.
Group1-JPG
Group1-AVI
Group2-JPG
Group2-AVI
And with help by script , i want to acces rules from Group1

I tried it like that but it dont work.

:local commentname "Group1*";
/ip firewall mangle set [find comment=$commentname] disabled=no;

Hello,

try to use “~” instead of “=”.

Thanks. It works.