Setting up barcode masks
Use barcode masks to control which barcodes NowGo accepts when drivers scan articles or consignments — and to clean up scanned values before they're used.
Last updated: May 2026
What is a barcode mask?
A barcode mask is a rule that tells NowGo how to recognise a valid barcode.
When a driver scans something in the mobile app, NowGo checks the scanned value against your configured masks to decide whether it matches an article or consignment, and what to do with the result.
Without masks, NowGo will attempt to match any scanned value as-is. Masks let you be more specific — for example, only accepting barcodes that follow a particular format, or stripping out characters you don't need before looking up the record.
Why use barcode masks?
Barcode masks are useful when:
Your barcodes follow a predictable format, and you want to prevent mis-scanned barcodes from being processed (for example, a driver accidentally scanning a shelf label instead of a package barcode)
You use multiple barcode formats across different parts of your operation (for example, articles vs consignments have different prefixes)
Your barcode values contain extra characters — like leading zeroes, carrier prefixes, or check digits — that aren't part of the identifier stored in NowGo
You want to normalise scanned values so they match how records are stored in your system
💁 EXAMPLE: Your warehouse labels use the format WH-0012345-A. NowGo stores consignments by the numeric portion only (0012345). A barcode mask can match the full label format and use the Output setting to extract and return just the numeric part for the lookup — no manual re-labelling required.
Where barcode masks are used
Barcode masks work alongside your mobile app workflows. When a driver scans a barcode at any point in a workflow, NowGo evaluates the scan against your masks to determine:
Does this barcode match a known pattern?
What type of barcode is this? Article, consignment, or something else?
Should the barcode be cleaned up or adjusted in any way before being processed?
Each mask you create covers one barcode pattern. You can create as many masks as you need.
💡 NOTE: If you create multiple barcode masks, each new scan will be evaluated against the masks in priority order from top to bottom. Arrange your masks in order of least specific to most specific to reduce any accidental mismatches.
Setting up a barcode mask
In the NowGo dashboard, click your username and select Settings.
In the Settings screen, click on App Configuration → Barcode masks
Click Add New to create a mask.
Fill in the settings described below, then click Save.
Barcode mask settings
Name (required)
A label for this mask, used to identify it in the dashboard. Choose something descriptive enough that your team can tell masks apart at a glance.
Example: Consignment — WH prefix or Article barcode (numeric)
External Reference (optional)
An identifier you can use to reference this mask from an external system or integration. This is for your own record-keeping and has no effect on how the mask behaves in NowGo.
Match settings
These settings control which scanned barcodes this mask will apply to.
Match every barcode
When turned on, this mask will match every scan, regardless of what the barcode looks like. The Regular Expression field below is ignored.
Use this sparingly — it's intended as a low-priority catch-all for cases where you want a mask to apply to any barcode that hasn't already been matched by a more specific mask. If you use this on a mask with a high priority, it will intercept all scans before your other masks get a chance to evaluate them.
💡 NOTE: If you use Match every barcode, make sure this mask is at the bottom of your list of barcode masks so that it has the lowest priority and will be evaluated last.
Regular Expression
If Match every barcode is OFF, barcodes will match on regular expressions instead.
A regular expression (regex) that describes the barcode format this mask should match. NowGo will only apply this mask to scans where the barcode matches this pattern.
Regular expressions are a standardised way to describe text patterns. If you're not familiar with them, a quick reference is available via the Learn more here link on the settings page.
💁 EXAMPLE:
To match barcodes that start with WH-, followed by exactly 7 digits, and end with a single letter, you could use: ^WH-\d{7}-[A-Z]$
If you're unsure how to write a regex for your barcode format, reach out to your account manager or the NowGo support team.
Ignore spaces
When enabled, any spaces in the scanned barcode are ignored when checking for a match. This is useful if your barcodes occasionally pick up extra spaces when scanned (for example, from worn or damaged labels), but the underlying value is still valid.
Ignore case
When enabled, the regex matches both uppercase and lowercase versions of any letter. Useful when your barcode format might vary between systems — for example, if one system prints WH- and another uses wh-.
Example (optional)
An example barcode value that should match this mask. This is for your reference only — it helps you and your team quickly verify what kind of barcodes this mask is intended for without needing to decode the regex.
Output (optional)
The Output section lets you optionally rewrite or clean up the scanned value before NowGo uses it for a lookup. Leave all Output settings blank if you want the raw scanned value passed through unchanged.
Click Show to expand the Output settings.
Output transform (optional)
Rewrites the scanned barcode before it's used downstream. You can reference parts of the original barcode using regex capture groups: $1 refers to the first capture group in your Regular Expression, $2 the second, and so on.
Leave this blank to pass the scanned value through unchanged.
💁 EXAMPLE: Your barcode is WH-0012345-A and your regex is ^WH-(\d+)-[A-Z]$. Setting the Output transform to $1 will extract just 0012345 — the part captured by the first group — and use that for the record lookup.
Allowed characters (optional)
After matching and transforming, any characters that aren't in this set will be dropped from the output. Use this to strip out unwanted characters that might remain after the transform.
You can specify exact characters in the text field (for example, entering ABC would allow only those three letters), and combine this with the broader category checkboxes below.
Option | What it allows |
Allow letters (A–Z, a–z) | All upper and lowercase letters |
Allow digits (0–9) | All numeric digits |
Leave blank (and both checkboxes unchecked) to keep all characters.
Strip whitespace from output
When enabled, any spaces in the output value are removed after all other transforms have been applied. Useful if your barcodes can pick up stray spaces from worn labels or certain scanners.
Change case
Controls the capitalisation of the final output value.
Option | Behaviour |
Leave as-is (default) | Output capitalisation is unchanged |
UPPERCASE | All letters are converted to uppercase |
lowercase | All letters are converted to lowercase |
This is applied last, after the transform and character filtering.
Output preview
If you've filled in the Example field earlier in the form, the Output preview shows you what the final output value would look like after all your Output settings have been applied. Use this to confirm your configuration is working as expected before saving.
💡 NOTE: The preview updates based on the Example value you entered in the Match settings section. If the preview is blank, check that you've entered an example barcode above.
Used by
These settings tell NowGo what kind of scan this mask is used for. The driver app uses this information to decide which mask applies at each step of a workflow.
Option | When to use |
Article | Select this if the mask is used to scan individual articles (items within a consignment). |
Consignment | Select this if the mask is used to scan at the consignment level. |
You can select both if the same barcode format is used for both articles and consignments.
Other tags
Most operations only need Article or Consignment. If your workflows include custom scan types — for example, a cage scan or a return label — you can create a custom tag to match against.
To use this custom tag, you will then need to contact your account manager to help set up driver app barcode scanning workflows that expect this tag.
Notes (optional)
Free-text notes about this mask, visible only in the dashboard. Useful for recording why a mask was created, which customers or workflows it applies to, or any known quirks to be aware of.
Tips and common questions
How many masks can I have?
There's no fixed limit. However, we recommend keeping your mask list as lean as possible. Too many overlapping masks can make it harder to troubleshoot unexpected behaviour.
What happens if a scan matches more than one mask?
NowGo evaluates masks in priority order and uses the first match. Make sure your most specific masks are higher priority than your catch-all masks.
What if a scan doesn't match any mask?
NowGo will still attempt to use the raw scanned value for a lookup. If no record is found, the scan will return a no match result.
