Rules
4
Active
2
Drafts
2
Corpus scans
10

Rule list

BCR-01Supplier reel label (TME / Farnell)Reelv46Horváth GáborVarga Zoltán Active
BCR-02Internal reel label (RL-…)Reelv22Horváth GáborVarga Zoltán Active
BCR-03Supplier reel label v5 (adds date-code region)Reelv57Horváth Gábor Draft
BCR-04MES tray label (fixed regions)Part numberv18Szabó László Draft

Step-through sandbox

Parsed
Reel 6 stages

Scan or type an ID, then press Enter.

No scans yet — scan a code.
  1. Ignore suffix · \r
    1P0402B104K;1TLOT-D112;Q4000 → 1P0402B104K;1TLOT-D112;Q4000
  2. Split regions · ;
    1P0402B104K;1TLOT-D112;Q4000 → 1P0402B104K ⁞ 1TLOT-D112 ⁞ Q4000
  3. Map field · region 1 · prefix 1P → mpn
    1P0402B104K ⁞ 1TLOT-D112 ⁞ Q4000 → mpn = 0402B104K
  4. Map field · region 2 · prefix 1T → lot
    1P0402B104K ⁞ 1TLOT-D112 ⁞ Q4000 → lot = LOT-D112
  5. Map field · region 3 · prefix Q → qty
    1P0402B104K ⁞ 1TLOT-D112 ⁞ Q4000 → qty = 4000
  6. Validate · qty numeric > 0
    1P0402B104K ⁞ 1TLOT-D112 ⁞ Q4000 → qty = 4000

Extracted fields

mpn
0402B104K
lot
LOT-D112
qty
4000

Regression corpus (against selected rule)

All passing
CORP-011P0402B104K;1TLOT-D112;Q4000mpn=0402B104K lot=LOT-D112 qty=4000mpn=0402B104K lot=LOT-D112 qty=4000 Pass
CORP-021PERJ-3EKF1002V;1TLOT-A88;Q5000mpn=ERJ-3EKF1002V lot=LOT-A88 qty=5000mpn=ERJ-3EKF1002V lot=LOT-A88 qty=5000 Pass
CORP-031PGRM155R71C104KA88D;1TLOT-C471;Q10000mpn=GRM155R71C104KA88D lot=LOT-C471 qty=10000mpn=GRM155R71C104KA88D lot=LOT-C471 qty=10000 Pass
CORP-051PXTAL-16M;1TLOT-K3;QX200reject: qty not numericrejected Pass
CORP-061PSN74LVC1G08;Q3000reject: lot region missingrejected Pass

Draft v5 awaiting independent approval — BCR-03 v5

Warning

Horváth Gábor

1 1 ignore-suffix: \r
2 2 split-region: ;
3 3 map-field: region 1 · prefix 1P → mpn
4 4 map-field: region 2 · prefix 1T → lot
5 5 map-field: region 3 · prefix Q → qty
6 6 validate: qty numeric > 0
7 + map-field: region 4 · prefix 9D → dc (optional)

Draft v5 awaiting independent approval — BCR-04 v1

Warning

Szabó László

1 + contains: MES
2 + min-length: 24
3 + max-length: 32
4 + split-fixed: 4:11,12:19,20:24
5 + map-field: region 1 → pn
6 + map-field: region 2 → lot
7 + map-field: region 3 → qty
8 + validate: qty numeric > 0