Feature BRE_FR_063 visualisation
Feature-ID: BRE_FR_063
Category: anchoring
Feature-Name: <circumflex>
Feature-Explanation:
A <circumflex> ( '^' ) shall be an anchor when used as the first character of an entire BRE. The implementation may treat the as an anchor when used as the first character of a subexpression. The <circumflex> shall anchor the expression (or optionally subexpression) to the beginning of a string; only sequences starting at the first character of a string shall be matched by the BRE. For example, the BRE "^ab" matches "ab" in the string "abcdef", but fails to match in the string "cdefab". The BRE "\(^ab\)" may match the former string. A portable BRE shall escape a leading <circumflex> in a subexpression to match a literal circumflex.
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_052 | abcdef | ^ab' | {1}, {{ab}} |
AKT_BRE_053 | cdefab | ^ab' | {0}, {{}} |
AKT_BRE_054 | abcdef | (^ab)' | {1}, {{ab}} |
info:* A portable BRE shall escape a leading in a subexpression to match a literal circumflex.
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