From ee73ab2298973bb8a4010b1907ce5097816ef672 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 12 Jul 2022 20:36:37 +0200 Subject: [PATCH] Add Regex within LOOT section --- .../Regular-Expression-Regex.html | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/docs/contributing/Regular-Expression-Regex.html b/docs/contributing/Regular-Expression-Regex.html index 2a3af2f..261ec2f 100644 --- a/docs/contributing/Regular-Expression-Regex.html +++ b/docs/contributing/Regular-Expression-Regex.html @@ -53,6 +53,40 @@ Let's take a look at unicode characters for character matching might be supported or not.

+ +
  - name: 'Example\.es(m|p)'
+    msg:
+      - <<: *useOnlyOneX
+        subs: [ 'Example Plugin' ]
+        condition: 'many("Example\.es(m|p)")'
+
+ +

The regex in the name field uses C++'s standard regex, which doesn't support unicode.

+ +

The regex in the condition field uses the Rust regex library, which supports unicode by default.

+ +Regex_Search_Cards + +

The search dialog uses Qt's regex implementation, which doesn't support unicode characters by default (though support could be enabled).

+ +Regex_Filter_Contain + +

The contains filter uses C++'s standard regex, which doesn't support unicode.

+ +

The following section will concentrate on the use of regex in the name field of plugin objects in the masterlist, so that we get a better understanding of what is possible while adding and updating plugin entries.

+ +

Characters and Rules

The following regular expressions can be used to match characters: