Replacement language
Replacement features define how matched text and captures are expanded, transformed, or supplied to callbacks after a match.
- Canonical category ID
replacement-language- Exact feature count
- 16
Conceptual organization
The groupings below use the corpus’s feature-class field to make the category easier to scan. They do not change canonical category membership.
replacement16
- Append-replacement stateMaintains an append position while incrementally copying unmatched and replacement text.
feature.append-replacement-state - Callback replacementComputes replacement text from a host callback receiving match data.
feature.callback-replacement - Replacement case conversionTransforms subsequent replacement output to upper, lower or title case.
feature.replacement-case-conversion - Conditional replacement expansionSelects replacement text according to capture participation or value.
feature.replacement-conditional - Replacement metacharacter escapingQuotes a replacement-language metacharacter as literal output.
feature.replacement-escape - Last participating capture replacementInserts the last capture that participated under the replacement profile's ordering rule.
feature.replacement-last-capture - Literal replacement textInserts literal replacement text for a selected match.
feature.replacement-literal - Named capture replacementInserts the value of a named capture into replacement output.
feature.replacement-named-group - Numbered capture replacementInserts the value of a numbered capture into replacement output.
feature.replacement-numbered-group - Replacement-only outputReturns only generated replacement fragments rather than a copy of unmatched subject text.
feature.replacement-only-output - Pre-match prefix replacement tokenInserts subject text preceding the match.
feature.replacement-prefix - Post-match suffix replacement tokenInserts subject text following the match.
feature.replacement-suffix - Unknown replacement group behaviorDefines compile or runtime behavior for a nonexistent capture reference.
feature.replacement-unknown-group - Unset replacement group behaviorDefines whether an unset capture inserts empty text, preserves syntax, or raises an error.
feature.replacement-unset-group - Whole-input replacement tokenInserts the complete original subject.
feature.replacement-whole-input - Whole-match replacement tokenInserts the complete matched substring into replacement output.
feature.replacement-whole-match
Category provenance
All 16 entries above derive from the canonical Regex Conformance snapshot at reviewed revision 3285cc9fa8310df0af00fa50724d65531e0695d9. The bound semantic digest is e2c99c582ad9c8f2875060f9cb9d3ec0da8057f554ac09477f8e07b96da30b05.