Hier mal wieder eine JSONATA Lösung - die sowas mit regulären Ausdrücken sehr elegant macht:
1a0c31a2-1c4a-46d7-a773-ed720078afce-image.png
Hier zum Import:
Spoiler
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="8=$*!H(xy1^`AZEQeNE~">text</variable>
<variable id="4bBbO|FF:w0yDLkHe*kP">liste</variable>
<variable id="2D;~f0M#tC/:.X,}*?`?">i</variable>
</variables>
<block type="variables_set" id="v[/}#qF*2iT!|b%!IM$(" x="-887" y="-437">
<field name="VAR" id="8=$*!H(xy1^`AZEQeNE~">text</field>
<value name="VALUE">
<block type="text_multiline" id="Eg%^;Qp:%v}$=*i;et;:">
<field name="TEXT">2024-04-25 12:55 ALARM: Chlor leer&#10;2024-04-25 07:59 SYSTEM: Start Automatic&#10;2024-04-25 07:59 SYSTEM: Systemstart abgeschlossen.&#10;2024-04-25 08:59 ALARM: neuer Alarm.&#10;&#10;</field>
</block>
</value>
<next>
<block type="variables_set" id="-ab)31WM+q@sOJr#xgOM">
<field name="VAR" id="4bBbO|FF:w0yDLkHe*kP">liste</field>
<value name="VALUE">
<block type="convert_jsonata" id="LvW1UNJ#GEPL?=foKQB1">
<value name="EXPRESSION">
<shadow type="text" id="Ih}[H5@vIYKXmjr*uYM-">
<field name="TEXT">$match($,/(?<=ALARM: ).*/).match[]</field>
</shadow>
</value>
<value name="TARGET">
<block type="variables_get" id="FV.4k}u9P/%douL6KDRI">
<field name="VAR" id="8=$*!H(xy1^`AZEQeNE~">text</field>
</block>
</value>
</block>
</value>
<next>
<block type="controls_forEach" id="6Ft.Da]Y+Xccji5?^aH1">
<field name="VAR" id="2D;~f0M#tC/:.X,}*?`?">i</field>
<value name="LIST">
<block type="variables_get" id="/he{1fH(wJ,^o(,ge.tm">
<field name="VAR" id="4bBbO|FF:w0yDLkHe*kP">liste</field>
</block>
</value>
<statement name="DO">
<block type="controls_if" id="g{s3hg[AJk8QU^8-Db:]">
<value name="IF0">
<block type="logic_compare" id="wk@18fZYMG#2OmXx?u8E">
<field name="OP">EQ</field>
<value name="A">
<block type="convert_type" id="q0Q~bxJFIl-3DCA0E;,P">
<value name="ITEM">
<block type="variables_get" id="(Nf+3iGMdzEnY1MWONCa">
<field name="VAR" id="2D;~f0M#tC/:.X,}*?`?">i</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="text" id=")#tq(g%.+Jp*iyA7xA#C">
<field name="TEXT">string</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="debug" id="`Nol2FVjT~#k!oX|r=f|">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="~,BQpnF#GB4vFoz]m_x{">
<field name="TEXT">test</field>
</shadow>
<block type="variables_get" id="PgA.xFG+tVh.0UNMV9Dp">
<field name="VAR" id="2D;~f0M#tC/:.X,}*?`?">i</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</xml>