From c8f9e586fbffa9b7e818d67ea21e50e4b682c471 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Sun, 19 Sep 2021 18:15:14 +0200 Subject: [PATCH] TUTORIAL: Move up "Parser regex" header & first paragraph (#357) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This way paragraphs describing regexes get into the "Parser regex" section which is where they belong. Signed-off-by: Rafał Miłecki Co-authored-by: Rafał Miłecki --- TUTORIAL.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/TUTORIAL.md b/TUTORIAL.md index aed330bb..39c560f7 100644 --- a/TUTORIAL.md +++ b/TUTORIAL.md @@ -65,6 +65,12 @@ extracted. Each field can be defined as: The first method is preferred. It was introduced to make templates syntax cleaner and more flexible. It aims to replace old methods. +### Parser `regex` + +It\'s the basic parser that allows parsing content using regexes. The +only required property is `regex` that has to contain one or multiple +(specified using array) regexes. + It's not required to put add the whole regex to the capturing group. Often we use keywords and only capture part of the match (e.g. the amount). @@ -78,12 +84,6 @@ engine](https://docs.python.org/2/library/re.html). It won't matter for the simple expressions we need, but sometimes there are subtle differences when e.g. coming from Perl. -### Parser `regex` - -It\'s the basic parser that allows parsing content using regexes. The -only required property is `regex` that has to contain one or multiple -(specified using array) regexes. - By default `regex` parser removes all duplicated matches. It results a single value or an array (depending an amount of unique matches found).