From 064ce7d97cfdda4b090d54479a981d4f3bfb65be Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 23 Jun 2024 07:25:40 +0200 Subject: [PATCH] Updated FAQ --- FAQ.md | 4 ++-- index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/FAQ.md b/FAQ.md index 1b425038ea..396e9a2143 100644 --- a/FAQ.md +++ b/FAQ.md @@ -2804,10 +2804,10 @@ Please see [here](https://developer.android.com/reference/java/util/regex/Patter Note that you need to match the complete text from the first to the last character. You can test a regex [here](https://regexr.com/). -You can use a regex like this to match a top-level domain (tld): +You can use a regex condition like this to match a top-level domain (tld): ``` -.*@.*\.xyz.* +.*@.*\.xyz> ``` Note that a regular expression supports an *or* operator, so if you want to match multiple senders, you can do this: diff --git a/index.html b/index.html index 94106ee821..cac573ea28 100644 --- a/index.html +++ b/index.html @@ -1530,8 +1530,8 @@ X-Google-Original-From: Somebody <somebody+extra@example.org>
jsoup:html > body > div > a[href=https://example.org]

You can use multiple rules, possibly with a stop processing, for an or or a not condition. Since version 1.2173 there is a NOT option for conditions that accept a regex.

Matching is not case sensitive, unless you use regular expressions. Please see here for the documentation of Java regular expressions. Note that you need to match the complete text from the first to the last character. You can test a regex here.

-

You can use a regex like this to match a top-level domain (tld):

-
.*@.*\.xyz.*
+

You can use a regex condition like this to match a top-level domain (tld):

+
.*@.*\.xyz>

Note that a regular expression supports an or operator, so if you want to match multiple senders, you can do this:

.*alice@example\.org.*|.*bob@example\.org.*|.*carol@example\.org.*

Note that dot all mode is enabled to be able to match unfolded headers.