Skip to content

Commit

Permalink
TUTORIAL: Move up "Parser regex" header & first paragraph (#357)
Browse files Browse the repository at this point in the history
This way paragraphs describing regexes get into the "Parser regex"
section which is where they belong.

Signed-off-by: Rafał Miłecki <[email protected]>

Co-authored-by: Rafał Miłecki <[email protected]>
  • Loading branch information
rmilecki and Rafał Miłecki authored Sep 19, 2021
1 parent 33f035d commit c8f9e58
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions TUTORIAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand All @@ -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).

Expand Down

0 comments on commit c8f9e58

Please sign in to comment.