Constant
Value
Description
A regular expression pattern string that matches valid segment IDs used in Islamic text translations. The pattern is constructed fromTRANSLATION_MARKER_PARTS and matches:
- A single letter prefix (marker type)
- One or more digits
- An optional lowercase letter suffix
Valid marker prefixes
| Prefix | Type | Example |
|---|---|---|
B | Book | B123 |
F | Footnote | F45a |
T | Heading | T890 |
C | Chapter | C567 |
N | Note | N234b |
P | Plain segment | P1234 |
Usage
Validate segment ID format
Extract IDs from text
Build marker pattern
Pattern construction
The pattern is built fromTRANSLATION_MARKER_PARTS:
Use cases
Internal validation
The library uses this pattern internally in:validateTranslationResponse()- Validate marker formatextractTranslationIds()- Extract IDs from textparseTranslations()- Parse ID-translation pairs
Custom validation
Custom parsing
Related constants
- TRANSLATION_MARKER_PARTS - Pattern components
- Markers - Marker type enum
Related functions
- extractTranslationIds - Uses this pattern
- validateTranslationResponse - Validates IDs