From 793b41ee6b6a9b6b7ba9483c2eb16b49eab06d85 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Fri, 11 Mar 2022 07:52:49 +0100 Subject: [PATCH] readme filter additions --- README.md | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 4325bea..c301844 100644 --- a/README.md +++ b/README.md @@ -171,21 +171,36 @@ sudo bash -c "$(wget -nv -O - https://github.com/wiedehopf/tar1090/raw/master/un ## Using the filters -js regex can be used, some examples: +js regex format, some basics (much more extensive issue available online on javascript regex syntax): + +- a single `.` is the wildcard for exactly one character +- multiple patterns can be combined with or: `|` + +### Some examples of useful constructs: + +#### Filter by type code: -- Filter by type code: ``` +B737 family: B73. (B73 and any character in the fourth position) +A320 family: A32. +B737-900 and B737 Max 9: B739|B39M +737 family including max: B73.|B3.M +B737 / A320 families: B73.|B3.M|A32.|A2.N Only A320 and B737 models: A32|B73 -Exclude: ^(?!A320) -Exclude multiple: ^(?!(A32|B73)) +Exclude a certain type: ^(?!A320) +Exclude multiple patterns: ^(?!(A32.|B73.)) ``` -- Filter by type description: + +#### Filter by type description: + ``` -Only helicopters: H -Only planes (land): L -Jets or turboprops: J|T -Only piston engined: P -Number of engines: 2 +Helicopters: H.. +Landplanes with 2 jet engines: L2J +Landplanes with any number of piston engines: L.P +Helicopters any number of turbin engines : H.T +All turboprop powered things, including turbine helicopters: ..T +Everything with 4 engines: .4. +Everything with 2 3 and 4 engines: .2.|.3.|.4. ``` ## Keyboard Shortcuts