From 41b0e1290df6e37e54b9b1469887a91be7745e36 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Fri, 20 Jan 2023 11:41:39 +0000 Subject: [PATCH] commandref: add Regexp paragraph (Forum #131676) git-svn-id: https://svn.fhem.de/fhem/trunk@27089 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/01_FHEMWEB.pm | 11 ++++-- fhem/docs/commandref_frame.html | 52 +++++++++++++++++++++++++ fhem/docs/commandref_frame_DE.html | 61 ++++++++++++++++++++++++++++++ 3 files changed, 120 insertions(+), 4 deletions(-) diff --git a/fhem/FHEM/01_FHEMWEB.pm b/fhem/FHEM/01_FHEMWEB.pm index 5a1c0f20c..2ffe162df 100644 --- a/fhem/FHEM/01_FHEMWEB.pm +++ b/fhem/FHEM/01_FHEMWEB.pm @@ -4057,7 +4057,7 @@ FW_log($$)
Regexp | Explanation |
---|---|
. | +Matches one arbitrary character. |
x | +Matches a string containing x: x, xy, but not abc |
^x | +Matches a string starting with x: x, xy, but not yx |
x$ | +Matches a string ending with x: x, yx, but not xy |
^x?$ | +Matches zero or one x: "", x, but not xx |
^x*$ | +Matches zero or more x: "", x, xxxx, but not xy or yx |
^x+$ | +Matches one or more x: x, xxxx, but not "" |
^(xy|yx)$ | +Matches xy or yx |
* | Not a valid regexp! This is a glob |
Regexp | Erklärung |
---|---|
. | +Trifft für ein beliebiges Zeichen/Buchstabe zu. |
x | +Trifft für eine Zeichenkette zu, die x enthält: x, xy, + aber nicht abc |
^x | +Trifft für eine Zeichenkette zu, die mit x anfängt: x, + xy, aber nicht yx |
x$ | +Trifft für eine Zeichenkette zu, die mit x endet: x, yx, aber + nicht xy |
^x?$ | +Trifft für eine Zeichenkette zu, die leer ist, oder nur ein x + enthält |
^x*$ | +Trifft für eine Zeichenkette zu, die leer ist oder nur x + enhtält: "", x, xxxx, aber nicht xy oder yx |
^x+$ | +Trifft für eine Zeichenkette zu, die x mindestens einmal + enthaelt: x, xxxx, aber nicht "" |
^(xy|yx)$ | +Trifft für xy or yx zu. |
* | Das ist kein Regexp! Das ist ein Glob. |