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 barcode does not correspond to the regular expression defined in the scanner acquisition filter, it is not scanned by the drone
- If it corresponds, the drone flies to the next location
2. The 5 most used RegEx

3. RegEx Examples
- L001389765824 => L00[0-9]{10}
All sets beginning with L00 and then 10 digits from 0 to 9.
If you only want to filter the 10 digits without L00, the RegEx will be L00([0-9]{10})
- 0354A89756004 => 0[0-9]{3}[A-Z][0-9]{5}
Barcode beginning with 0, then 3 digits from 0 to 9, then a letter from A to Z, and the 5 next digits from 0 to 9.
- L54168568974569 => L[0-9]{8,14}
All barcodes beginning with an uppercase L, then at least 8 digits from 0 to 9 and not more than 14.
- +E659ME5846546L => \+[E|G][5-9]{3}ME[0-9]{7}L
All sets beginning with « + » (the backslash means « + » matches itself), then an uppercase E or G, the next 3 digits from 5 to 9, then the ME letters, 7 digits from 0 to 9 and ending by an uppercase L.
- N325-545 => N[0-9]{3}-[0-9]{3}
Barcode beginning with an uppercase N, then 3 digits from 0 to 9, a hyphen and again 3 digits from 0 to 9.
If you want to retrieve a barcode starting by N uppercase letter, then any 3 characters, a hyphen and again any 3 characters, the RegEx would be N…-…
- 158G-8465 => [1-9]{3}[A-[^K-N]Z]-[0-9]{4}
All barcodes beginning with 3 digits from 1 to 9, an uppercase letter from A to Z except for the letters from K to N included, a hyphen, and then 4 digits from 0 to 9.
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.