Table of Contents

regex attribute

Specifies a regular expression to match particular values.

Content Type

string

Parent

ExportRule

Examples

In the example below, we search for tags containing "MCR":

<ExportRule regex="MCR" />

For a full match, use the start-of-string anchor "^" and the end-of-string anchor "$":

<ExportRule table="1000" tag="Protocol/Params/Param/Display/Positions/Position/Page" value="General" regex="^Export Items$"/>

Example:

  • Position element 1:

    <Position>
        <Page>Export Items</Page>
        <Row>1</Row>
       <Column>0</Column>
    </Position>
    
  • Position element 2:

    <Position>
        <Page>Export Items Details</Page>
        <Row>2</Row>
        <Column>1</Column>
    </Position>
    
  • Export rule:

    <ExportRule table="1000" tag="Protocol/Params/Param/Display/Positions/Position/Page" value="General" regex="Export Items"/>
    
  • Result:

    • Position element 1:

      <Position>
          <Page>General</Page>
          <Row>1</Row>
          <Column>0</Column>
      </Position>
      
    • Position element 2:

      <Position>
          <Page>General Details</Page>
          <Row>2</Row>
          <Column>1</Column>
      </Position>