Feature BRE_FR_059 visualisation
Feature-ID: BRE_FR_059
Category: multiple characters
Feature-Name: interval expressions
Feature-Explanation: When a BRE matching a single character, a subexpression, or a back-reference is followed by an interval expression of the format "{m}", "{m,}", or "{m,n}", together with that interval expression it shall match what repeated consecutive occurrences of the BRE would match. The values of m and n are decimal integers in the range 0 <= m<= n<= {RE_DUP_MAX}, where m specifies the exact or minimum number of occurrences and n specifies the maximum number of occurrences. The expression "{m}" shall match exactly m occurrences of the preceding BRE, "{m,}" shall match at least m occurrences, and "{m,n}" shall match any number of occurrences between m and n, inclusive.
For example, in the string "abababccccccd" the BRE "c{3}" is matched by characters seven to nine, the BRE "(ab){4,}" is not matched at all, and the BRE "c{1,3}d" is matched by characters ten to thirteen.
Source: Extracted from: IEEE Std 1003.1™-2017 (Revision of IEEE Std 1003.1-2008), 9.1 - matched \
ID | Search text | Regex pattern | Expected Output* |
---|---|---|---|
AKT_BRE_044 | ababbababbababbababbababb | (ababb){1}' | {5}, {{ababbababb}} |
AKT_BRE_045 | ababbababbababbababbababb | (ababb){1, }' | {1}, {{ababbababbababbababbababb}} |
AKT_BRE_046 | ababbababbababbababbababb | (ababb){1,2}' | {3}, {{ababbababb},{ababbababb},{ababb}} |
AKT_BRE_047 | abababccccccd | \c{3}' | {2}, {{ccc},{ccc}}} |
AKT_BRE_048 | abababccccccd | (ab){4,}' | {0}, {{}} |
AKT_BRE_049 | abababccccccd | c{1,3}d' | {1}, {{cccd}} |
Documentation - Features for visualisation
Acceptance Criteria:
-
All acceptance criteria are fulfilled -
Diagramm displays the Regex right -
The right number of Matches and the right matches are shown
Definition of Done:
-
All Code ist commented (Docblocks, English) -
The unit tests were written, executed and passed (includes old code that is used) -
Every acceptance cirteria have at least a test case associated -
Has been peer-reviewed -
Documentation is updated -
The user interface is according to the design -
Acceptance of stakeholder