NextGen Knowledge Center

Regular Expressions Table

The table at the top of the Regex Attachment Handler dialog shows the current regular expressions you have configured. The first capture group is used to determine what data to extract, so if you have other groups in the expression, make sure to include "?:" to make then non-capturing. There is an example that shows how to extract data from the OBX.5.5 component in an HL7 v2.x message:

  • (?:OBX\|(?:[^|]*\|){4}(?:[^|^]*\^){4})([^|^\r\n]*)(?:[|^\r\n]|$)

Select the New / Delete buttons to add or remove regular expressions from the table.

For each regular expression you can also specify a MIME type. This supports Velocity Variable Replacement, so you can use source map variables here.