Range-Matching Feature - Aster Analytics

Teradata Aster Analytics Foundation User Guide

Product
Aster Analytics
Release Number
6.21
Published
November 2016
Language
English (United States)
Last Update
2018-04-14
dita:mapPath
kiu1466024880662.ditamap
dita:ditavalPath
AA-notempfilter_pdf_output.ditaval
dita:id
B700-1021
lifecycle
previous
Product Category
Software

The range-matching feature lets you specify the number of times that a subpattern must appear in a match. You can specify an exact number, a minimum number, or both a minimum and maximum number:

  (subpattern){n[,[m]]}

In the preceding syntax, you must type the braces ({ and }).

( subpattern ){ n } specifies that subpattern must appear exactly n times. For example, the following pattern specifies that subpattern (A.B|C) must appear exactly 3 times:

  'X.(Y.Z).(A.B|C){3}'

The preceding pattern is equivalent to the following pattern:

  'X.(Y.Z).(A.B|C).(A.B|C).(A.B|C)'

( subpattern ){ n , } specifies that subpattern must appear at least n times. For example, the following pattern specifies that subpattern (A.B|C) must appear at least 4 times:

  'X.(Y.Z).(A.B|C){4}'

The preceding pattern is equivalent to the following pattern:

  'X.(Y.Z).(A.B|C).(A.B|C).(A.B|C).(A.B|C)*'

( subpattern ){ n , m } specifies that subpattern must appear at least n times and at most m times. For example, the following pattern specifies that subpattern (A.B|C) must appear at least 2 times and at most 4 times:

  'X.(Y.Z).(A.B|C){2,4}'

The preceding pattern is equivalent to the following pattern:

  'X.(Y.Z).(A.B|C).(A.B|C).(A.B|C)?.(A.B|C)?'