Hauptmenü

=~Operator im Doif

Begonnen von gent, 03 Februar 2020, 19:20:59

Vorheriges Thema - Nächstes Thema

gent

Hi,

kurze Frage: Ein Reading (Abfall:next) enthält einen Text (Restmuell2-woechentlich|Restmuell4-woechentlich_3) und ich möchte das Vorkommen vom Teilstring "Restmuell" im DoIF abfragen. Was ist nun richtig:

[Abfall:next] =~ /Restmuell/
[Abfall:next] =~ "Restmuell"
[Abfall:next] =~ "/Restmuell/"

Viele Grüße
fhem auf rPi3 mit USB boot und M2, cul866 (hm), homebridge, FlowerSens, Shelly, Harmony, WemosD1, Sonoff/Tasmota, grafana, mqtt/mosquitto

amenomade

1 und 2
3 vielleicht auch, aber ich bin nicht sicher
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

gent

fhem auf rPi3 mit USB boot und M2, cul866 (hm), homebridge, FlowerSens, Shelly, Harmony, WemosD1, Sonoff/Tasmota, grafana, mqtt/mosquitto