Feature BRE_FR_057 visualisation
Feature-ID: BRE_FR_057
Category: multiple characters
Feature-Name: brack reference expression
Feature-Explanation: The back-reference expression '\n' shall match the same (possibly empty) string of characters as was matched by a subexpression enclosed between "(" and ")" preceding the '\n'. The character 'n' shall be a digit from 1 through 9, specifying the nth subexpression (the one that begins with the nth "(" from the beginning of the pattern and ends with the corresponding paired ")" ). The expression is invalid if less than n subexpressions precede the '\n'. The string matched by a contained subexpression shall be within the string matched by the containing subexpression. If the containing subexpression does not match, or if there is no match for the contained subexpression within the string matched by the containing subexpression, then back-reference expressions corresponding to the contained subexpression shall not match. When a subexpression matches more than one string, a back-reference expression corresponding to the subexpression shall refer to the last matched string.
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_030 | TST_DS_001 | (Regular).*\1' | {1}, {{Regular Expression (BRE) notation and construction rules in Basic Regular Expressions shall apply to most utilities supporting regular expressions. Some utilities, instead, support the Extended Regular Expressions (ERE) described in Extended Regular}} |
AKT_BRE_031 | TST_DS_006 | (*test)\1' | {1}, {{testtest}} |
AKT_BRE_032 | TST_DS_006 | (*test)\a' | invalid |
AKT_BRE_033 | TST_DS_006 | (*test)\0' | invalid |
AKT_BRE_034 | TST_DS_006 | (*test)\1' | invalid |
AKT_BRE_035 | TST_DS_006 | (*test)\1' | {1}, {{testtest}} |
AKT_BRE_036 | TST_DS_006 | (string)\1' | {0}, {} |
AKT_BRE_037 | TST_DS_007 | ^(.*)\1$' | {1}, {{teststringteststring}} |
AKT_BRE_037 | TST_DS_007 | ^(t)*\1$' | {0}, {{}} |
AKT_BRE_038 | a' | (a)*\1' | {0}, {{}} |
AKT_BRE_039 | abab' | (a(b))\2' | {0}, {{}} |
AKT_BRE_040 | ababbabb' | ^(ab*)*\1$' | {1}, {{ababbabb}} |
AKT_BRE_041 | ababbab' | ^(ab*)*\1$' | {0}, {{}} |
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