Considerations

All text to which the regular expression is applied is converted to UTF-16.

  • Performance using a regular expression may not be as fast as using a text string.
  • If the CPGID value is incorrect the conversion may fail with error message APK2080.
If the regular expression is invalid, ACIF will fail with error message APK484.

Using Default Values
If the regular expression does not match any text in the field, a default value may be used. Whether or not a default value is used, and which type of default value, depends on the type of field. There are three types of fields: fields based on group triggers, fields based on floating triggers, and transaction fields.
Group field
  1. If a regular expression does not match any text in the group field, the default value specified on the FIELD parameter is used. If no default value is specified, ACIF ends with error message APK488.
  2. If the record is only long enough to contain part of the field, the regular expression is applied only to the portion of the record that is present.
  3. If the record is not long enough to contain even the first byte of the field, the default value specified on the FIELD parameter is used. If no default value is specified, ACIF ends with error message APK449.
Floating field
  1. If a regular expression does not match any text in the floating field, there is no