Handling multi-line QR Codes in BardecodeFiler
If you are processing multi-line Qr Codes in BardecodeFiler (the same could apply to PDF-417 or DataMatrix barcodes) and want to extract certain lines of data to create the output file name then you will need to use the Reformat feature of BardecodeFiler.
The Reformat feature allows you to use the power of regular expressions to chop up and rearrange data as you wish. The reformat table uses a regular expression on the left hand column and a formatting expression on the right.
Assuming that your lines are terminated by carriage return new line pairs then the following regular expression will match 1 line from your data:
So if you data contains 4 lines then you should enter the following on the left hand side:
On the right hand side you can then pick out and arrange the lines of data as you wish. For example, to use line 3 followed by line 2:
Note that you can make your regular expression much more complex if you wish and extract only parts of lines if you wish.
There’s usually no need to change the output template from the default when doing this.