att.patternReplacement

att.patternReplacement provides attributes for regular-expression matching and replacement. [16.2.3. Using Abbreviated Pointers 2.3.6.3. Milestone Method 2.3.6. The Reference System Declaration 2.3.6.2. Search-and-Replace Method]
Module header
Members prefixDef
Attributes Attributes
matchPattern specifies a regular expression against which the values of other attributes can be matched.
Status Required
Datatype teidata.pattern
Note
The syntax used should follow that defined by W3C XPath syntax. Note that parenthesized groups are used not only for establishing order of precedence and atoms for quantification, but also for creating subpatterns to be referenced by the replacementPattern attribute.
replacementPattern specifies a replacement pattern, that is, the skeleton of a relative or absolute URI containing references to groups in the matchPattern which, once subpattern substitution has been performed, complete the URI.
Status Required
Datatype teidata.replacement
Note
The strings $1, $2 etc. are references to the corresponding group in the regular expression specified by matchPattern (counting open parenthesis, left to right). Processors are expected to replace them with whatever matched the corresponding group in the regular expression.
If a digit preceded by a dollar sign is needed in the actual replacement pattern (as opposed to being used as a back reference), the dollar sign must be written as
%24
.
Source Github

<classSpec module="header" type="atts" ident="att.patternReplacement">
   
<desc>provides attributes for regular-expression matching and replacement.</desc>
   
<attList>
      
<attDef ident="matchPattern" usage="req">
         
<desc>specifies a regular expression against which the values of other attributes
    can be matched.
</desc>
         
<datatype>
            
<dataRef key="teidata.pattern"/>
         
</datatype>
      
</attDef>
      
<attDef ident="replacementPattern" usage="req">
         
<desc>specifies a <soCalled>replacement pattern</soCalled>, that is, the skeleton of a relative or absolute URI containing references to groups in
    the 
<att>matchPattern</att> which, once subpattern substitution
    has been performed, complete the URI.
</desc>
         
<datatype>
            
<dataRef key="teidata.replacement"/>
         
</datatype>
      
</attDef>
   
</attList>
</classSpec>