Basic queries
This table shows basic queries and their corresponding regular expressions:
Query | Code |
---|---|
<Filed Name>=value |
|
Not <Segment>.<Index>=value. This indicates the carriage return displays once or not at all before a segment. |
|
<Segment>.<Index>=value |
|
<Field Alias>=value |
|
<Subfield Alias>=value |
|
In these queries:
(\r)?+Segment\|
matches the specified segments in a message.(\r)?+
([^\|]*\|){Index-1}+
specifies how many fields should be passed through before reaching the specified field.Index
indicates the field index.[^\|]*value
attempts to match a field value. A field consists of several subfields. To support wildcard matching, [^\|]* is added before the value..(?!value)
introduces a zero-width negative lookahead to represent the logic NOT.([^\\^]*\\^){SubIndex-1}+value
matches the specified subfield.([^\\^]*\\^){SubIndex-1}+
specifies how many subfields should be gone through before reaching that subfield.- The
|
and^
characters are the default delimiters of fields and subfields. They are replaced with the real delimiters in runtime if the messages are using the other delimiters.