More examples of using FLRE #52

Open
Bi0T1N wants to merge 2 commits from Bi0T1N/more_examples into master
Bi0T1N commented 2020-03-13 22:46:53 +00:00 (Migrated from github.com)

Please note that it seems that the function TFLRE.Split() is not working as intended
because the examples in SplitStrings are not showing anything

Actual output:

*- Examples for Match/MatchAll -*
        - Only anchored Result(s) with Match -
                17. June 2016
                13. November 2016
                1. April 2016
        - Only first Result with MatchAll -
                17. June 2016
                13. November 2016
                14. June 2016
                1. April 2016
        - All Results with MatchAll -
                17. June 2016
                13. November 2016
                17. March 2020
                14. June 2016
                1. April 2016

*- Examples for Match/MatchAll -*
        - Only anchored first Result(s) with Match -
        - Only first Result with MatchNext -
                brown
        - Only first Result with MatchAll -
                brown
        - All Results with MatchAll -
                brown
                fox
                dog

*- Examples for ExtractAll -*
        Word pair
        Word
        pair
        Pair Words
        Pair
        Words

*- Examples for named capturing groups -*
        Group: wholematch
        Match: 2019-10-24
        Group: year
        Match: 2019
        Group: month
        Match: 10
        Group: day
        Match: 24
                mm-yyyy is 10-2019

        Group: wholematch
        Match: brown fox

        Group: color
        Match: brown

        Group: animal
        Match: fox


*- Examples for Find -*
        Match found at Position: 5
        Match found at Position: 17
        Match found at Position: 0

*- Examples for Test -*
        Matches anchored?: False
        Matches anchored?: True
        Matches anchored?: False
        Matches anchored?: False
        Matches unanchored?: True
        Matches unanchored?: True
        Matches unanchored?: False

*- Examples for Replace -*
        2019-12-24
        No date anymore
        123-123-123
        \d+
        ([0-9]+)

*- Examples for converted regular expression -*
        \W\d\d   ->   ([\x00-/\x3a-@\x5b-\x5e\x60\x7b-\xff][0-9][0-9])
        \d+-\d+-\d+   ->   ([0-9]+\x2d[0-9]+\x2d[0-9]+)
        \d+   ->   ([0-9]+)
Please note that it seems that the function `TFLRE.Split()` is not working as intended because the examples in `SplitStrings` are not showing anything Actual output: ``` *- Examples for Match/MatchAll -* - Only anchored Result(s) with Match - 17. June 2016 13. November 2016 1. April 2016 - Only first Result with MatchAll - 17. June 2016 13. November 2016 14. June 2016 1. April 2016 - All Results with MatchAll - 17. June 2016 13. November 2016 17. March 2020 14. June 2016 1. April 2016 *- Examples for Match/MatchAll -* - Only anchored first Result(s) with Match - - Only first Result with MatchNext - brown - Only first Result with MatchAll - brown - All Results with MatchAll - brown fox dog *- Examples for ExtractAll -* Word pair Word pair Pair Words Pair Words *- Examples for named capturing groups -* Group: wholematch Match: 2019-10-24 Group: year Match: 2019 Group: month Match: 10 Group: day Match: 24 mm-yyyy is 10-2019 Group: wholematch Match: brown fox Group: color Match: brown Group: animal Match: fox *- Examples for Find -* Match found at Position: 5 Match found at Position: 17 Match found at Position: 0 *- Examples for Test -* Matches anchored?: False Matches anchored?: True Matches anchored?: False Matches anchored?: False Matches unanchored?: True Matches unanchored?: True Matches unanchored?: False *- Examples for Replace -* 2019-12-24 No date anymore 123-123-123 \d+ ([0-9]+) *- Examples for converted regular expression -* \W\d\d -> ([\x00-/\x3a-@\x5b-\x5e\x60\x7b-\xff][0-9][0-9]) \d+-\d+-\d+ -> ([0-9]+\x2d[0-9]+\x2d[0-9]+) \d+ -> ([0-9]+) ```
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin Bi0T1N/more_examples:Bi0T1N/more_examples
git switch Bi0T1N/more_examples

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch master
git merge --no-ff Bi0T1N/more_examples
git switch Bi0T1N/more_examples
git rebase master
git switch master
git merge --ff-only Bi0T1N/more_examples
git switch Bi0T1N/more_examples
git rebase master
git switch master
git merge --no-ff Bi0T1N/more_examples
git switch master
git merge --squash Bi0T1N/more_examples
git switch master
git merge --ff-only Bi0T1N/more_examples
git switch master
git merge Bi0T1N/more_examples
git push origin master
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
BeRo1985/flre!52
No description provided.