Description

In many instances, we've seen users need to separate a single piece of metadata into multiple fields. This can be first and last name, an invoice number from a prefix or suffix, or various other cases.

Below is an example of how we might separate out a value gathered by a barcode, called PageBarcode in this example by using a hyphen as a delimiter of the two values.

NOTE: Modify your Metadata is only available in Capture Server Pro 1.10 and later.

In this example, we will take a barcode value that is set with a branch code before a hyphen that is 3 characters and a document number that is 5 characters after the hyphen and set them to two pieces of metadata inside each document.

1.

var pattern = /\S{3}-\S{5}/

First, we will use var pattern = /\S{3}-\S{5}/ to set the regular expression we will use to validate these barcodes are in the correct format.