for Cnt := 0 to PanelRegexModifiers.ControlCount -1 do
begin
if PanelRegexModifiers.Controls[Cnt].ClassType = TCheckBox then
begin
if (PanelRegexModifiers.Controls[Cnt].Caption = 'S') and
((PanelRegexModifiers.Controls[Cnt] as TCheckBox).Checked = true)
then
re.ModifierS := true
else
re.ModifierS := false;
//....
end;