Welcome to the EYESEE Solution support

Log in to EYESEE Cloud | Contact support | Langue

< All Topics

RegEx Guide

1. What is a RegEx?

A Regular Expression, or RegEx, is a pattern (or filter). It accepts a certain set of characters and rejects the rest.

  • If a code does not correspond to the regular expression defined in the scanner acquisition filter, it is not retrieved by the drone.
  • If it corresponds, the drone retrieves the piece of information and flies to the next location.

2. The 6 most used RegEx

3. RegEx Examples

  • LM1389765824 OR 60245982 => [A-Z]{2}.{10}|[0-9]{6,10}

This RegEx contains 2 possible code formats:
Format 1: Begin with 2 letters from A to Z, then 10 characters OR
Format 2: Contains from 6 to 10 digits from 0 to 9

  • I350253014484684E => [A-Z]{1,2}[0-9]{15}E

This RegEx contains only 1 code format:
Begin with from 1 to 2 letters from A to Z, then 15 digits from 0 to 9, then the E letter

  • 005498634702519864 OR 362489750312067952=> 00.{16}|36.{16}

This RegEx contains 2 possible code formats:
Format 1: Begin with 00, then 16 characters OR
Format 2: Begin with 36 , then 16 characters

  • 00123521254125412581212  =>  00(.{18}).*

This RegEx contains only 1 code format:

Begin with 00, then 18 characters, and other characters without restrictions with the character star.
The parenthesis allow to keep only the 18 characters next the 00. And this, whatever the read code.

  • CL21606680 OR 4402385106 OR 4508753068 OR N4950623 OR W754038249 => [A-Z]{2}.{7,8}|44.{8}|45.{8}|[N].{7}|W.{9}

This RegEx contains 5 possible code formats:
Format 1: Begin with 2 letters from A to Z, then from 7 to 8 characters OR
Format 2: Begin with 44, then 8 characters OR
Format 3: Begin with 45, then 8 characters OR
Format 4: Begin with N, then 7 characters OR
Format 5: Begin with W, then 9 characters

  • 03006052IN00WB,2301823,475238,2000,12,0,1014=> (0[A-Z0-9]{12,16}\,[A-Z0-9]{5,7}\,[A-Z0-9]{4,6}).*

This RegEx contains only 1 code format (datamatrix) :
The parenthesis allow to exclude the red part beginning with 0, then from 12 to 16 characters containing letters from
A to Z and digits from 0 to 9, then a comma (the backslash sign placed before the comma means the comma sign is
waiting), then from 5 to 7 letters and digits characters, a comma, from 4 to 6 letters and digits
To only keep the following part (without restriction here with the star character).

4. Characters’ description

  • Special Characters

  • A few examples of character class

  • Repetion operators

5. Test and check a RegEx

You can test and check a RegEx directly on EYESEE Tablet, in the TOOLS menu:

Please read the online documentation about EYESEE Tablet for more information.

Table of Contents