---
title: Creating Export Templates
description: "## What Are Export Templates? Export Templates are essential tools for organizing, filtering, exporting, and sharing scan records. They let you control which criteria are used to filter your scan records and determine what details appear in your exported data.…"
url: "https://www.codereadr.com/knowledgebase/creating-export-templates/"
updated: "2026-08-06"
category: Scans
---

# Creating Export Templates

## What Are Export Templates?

Export Templates are essential tools for organizing, filtering, exporting, and sharing scan records. They let you control which criteria are used to filter your scan records and determine what details appear in your exported data. Follow this guide to create and customize Export Templates effortlessly.

## How to Access Export Templates

 ![Export templates](https://www.codereadr.com/wp-content/uploads/2016/02/export1.png)

1. Navigate to the Scans page.
2. Select the Export Templates tab.
3. Click Create a Template to get started.

 ![Drag and drop columns](https://www.codereadr.com/wp-content/uploads/2016/02/export2.png)

## Creating an Export Template

### Step 1: Customize Export Fields

On the template creation screen, you can:

- Select fields (values and questions) to include in your export.
- Arrange fields in descending order (the top field appears first).
- Filter questions by service to ensure you only include relevant questions (e.g., differentiate between similarly named fields like "Check In").

 ![Export template steps](https://www.codereadr.com/wp-content/uploads/2016/02/export3.png)

### Step 2: Rename Columns

- Click the Edit icon next to a value to rename it for compatibility with your destination document.
- Use the Copy button to duplicate a value, enabling:
  - Displaying multiple answers for a question in different columns.
  - Repeating data across fields.

### Step 3: Add Custom Columns

- Drag and drop Custom Value from the Static Choices section to create placeholder columns.
- Name the column and optionally autofill it with a static value.

 ![Create a place holder](https://www.codereadr.com/wp-content/uploads/2016/02/Export4.png)

## Advanced Options: Regular Expressions (Regex)

### What is Regex

Regex lets you extract structured data from barcodes or raw response text, breaking it into separate fields for easier analysis. It’s commonly used for parsing formats like VCARDs or data with delimiters like tabs, spaces, or pipes.

 ![Regex columns for a template](https://www.codereadr.com/wp-content/uploads/2016/02/regex-template.png)

Regular Expressions (regex) can break up raw data embedded together in a barcode (or in the response text) into individual fields. It is commonly used for **VCARD** parsing. Here are some examples.

### Barcode including line feeds to parse into different lines

 ![Barcode template instructions](https://www.codereadr.com/wp-content/uploads/2016/02/barcode-for-template-instructions.png)

**Pattern:**

^(\[sS\]\*?)rn(\[sS\]\*?)rn(\[sS\]\*?)rn(\[sS\]\*?)rn(\[sS\]\*?)rn(\[sS\]\*?)$

**Replacement:**

$1 for Name

$2 for Occupation

$3 for Company

$4 for Location

$5 for Phone Number

$6 for Email

**Result:**

*In each* *column:*

John Doe

Engineer

Design Inc.

Cupertino, CA

1-800-555-1212

john@email.com

Notice the pattern begins with the ^ symbol and ends with the $ symbol. Also notice the **(\[sS\]\*?)** pattern repeats six times for six elements. And (important) the**rn** repeats 5 times. You need to clone six times for six elements, each using the SAME pattern but with a different replacement ($1, $2, etc.).

### Barcode including five 5 bar ‘|’ separators for 6 elements

**Pattern:**

^(\[sS\]\*)|(\[sS\]\*)|(\[sS\]\*)|(\[sS\]\*)|(\[sS\]\*)|(\[sS\]\*)$

**Replacement:**

$1 for Name

$2 for Occupation

$3 for Company

$4 for Location

$5 for Phone Number

$6 for Email

**Input:**

John Doe|Engineer|Design Inc.|Cupertino, CA|1-800-555-1212|john@email.com

**Result:**

*In each* *column:*

John Doe

Engineer

Design Inc.

Cupertino, CA

1-800-555-1212

john@email.com

Notice the pattern begins with the ^ symbol and ends with the $ symbol. Also notice the **(\[sS\]\*?)** pattern repeats six times for six elements. And (important) the**|** symbols repeat 5 times. As with the line feed (rn) example, you need to clone six times for six elements, each using the SAME pattern but with a different replacement ($1, $2, etc.).

### Barcode including five space separators for six elements

**Pattern:**

^(\[sS\]\*)s(\[sS\]\*)s(\[sS\]\*)s(\[sS\]\*)s(\[sS\]\*)s(\[sS\]\*)$

**Replacement:**

$1 for Name

$2 for Occupation

$3 for Company

$4 for Location

$5 for Phone Number

$6 for Email

**Input:**

John Doe Engineer Design Inc. Cupertino, CA 1-800-555-1212 john@email.com

**Result:**

*In each* *column:*

John Doe

Engineer

DesignInc.

Cupertino,CA

1-800-555-1212

john@email.com

### Barcode including five tab separators for six elements

**Pattern:**

^(\[sS\]\*)t(\[sS\]\*)t(\[sS\]\*)t(\[sS\]\*)t(\[sS\]\*)t(\[sS\]\*)$

**Replacement:**

$1 for Name

$2 for Occupation

$3 for Company

$4 for Location

$5 for Phone Number

$6 for Email

**Input:**

John Doe     Engineer      Design Inc.      Cupertino, CA     1-800-555-1212     john@email.com

**Result:**

*In each* *column:*

John Doe

Engineer

Design Inc.

Cupertino, CA

1-800-555-1212

john@email.com

### Cloning fields and ordering elements based on element patterns

When using Batch Mode, for example, multiple barcodes are captured within a single field. If you need those barcodes to be presented in a certain order, regex can do that for you providing there's a way to differentiate the barcodes values scanned.  Please look here for an example [regex for Batch Mode order](https://www.codereadr.com/wp-content/uploads/2016/02/Batch_Mode_Order_Regex.pdf).

### Clone and parse elements in one field

**Pattern:**

^(\[sS\]\*?)||(\[sS\]\*?)||(\[sS\]\*?)||(\[sS\]\*?)||(\[sS\]\*?)||(\[sS\]\*?)$

**Replacement:**

$1 for Name

$2 for Occupation

$3 for Company

$4 for Location

$5 for Phone Number

$6 for Email

**Input:**

John Doe||Engineer||Design Inc.||Cupertino, CA||1-800-555-1212||john@email.com

**Result:**

*In each* *column:*

John Doe

Engineer

Design Inc.

Cupertino, CA

1-800-555-1212

john@email.com

### VCARD barcode parsing

The parsing of VCARD data is similar to the above except you will need to parse each field based on the field's description. Please look here for [VCARD Parsing Regex for Barcode Scanner](https://www.codereadr.com/wp-content/uploads/2016/02/VCARD-Parsing-Regex-for-Barcode-Scanner.pdf).

### Batch Scanning

The CodeREADr app can quickly scan up to 500 barcodes in a single camera view. [Here's a blog article discussing batch scanning](https://www.codereadr.com/blog/the-quickest-way-to-scan-serial-number-barcodes/).

**Parsing into Rows**

When batch scans are exported, they will all appear in a single cell. Parsing each barcode into a separate row can currently only be done after the scan records have been exported. Contact support@codereadr.com for information on how to do that with Excel and Sheets.

**Parsing into Columns**

You can create separate columns when using an export template. You would clone the barcode field into separate columns and use the custom option to enter the regex based on the separator chosen for your batch scan.

Also, if select barcodes can be differentiated from the other barcodes recorded, a regex can be written to have them appear in specified columns. This PDF shows [how to separate batch scans into separate columns](https://www.codereadr.com/wp-content/uploads/2022/10/Batch_Mode_Order_Regex.pdf).

Alternatively, if you have a large number of scan values in one cell, here's a PDF showing how to [parse them](https://www.codereadr.com/wp-content/uploads/2024/05/Instructions-Comma-Separated-to-Rows-3.pdf)[in Excel](https://www.codereadr.com/wp-content/uploads/2024/05/Instructions-Comma-Separated-to-Rows-3.pdf).

## Special Fields in Export Templates

 ![export template operation](https://www.codereadr.com/wp-content/uploads/2016/02/export5.png)

- GPS Data: [Export GPS data in various formats](https://www.codereadr.com/knowledgebase/service-advanced-settings/), including:
  - Address
  - Latitude/Longitude
- Photos: [Export links or filenames for photos collected via barcode scanning](https://www.codereadr.com/knowledgebase/photo-collection-and-signature-capture/).

 ![export template operation](https://www.codereadr.com/wp-content/uploads/2016/02/export6.png)

## Using Formulas

For each column, you will see "Available options for altering value", including:

1. Default (no change).
2. Custom (parsing, etc.)
3. Formula (simple operators to add, subtract, concatenate, etc.).
