Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
GS1-128 and RegEx
Open Workspace
PCRE2 (PHP)
Substitution
Created 2022-11-23 18:30
0
Regular Expression
/
(
\(
\d
{1,3}
[
0
-
9,a
-
z,A
-
Z
]
{1}?
\)
(?<upc>
[
\d
,a
-
z,A
-
Z
]
{1,70}
)
)(
\(
\d
{1,3}
[
0
-
9,a
-
z,A
-
Z
]
{1}?
\)
(?<date>
[
\d
,a
-
z,A
-
Z
]
{1,70}
)
)(
\(
\d
{1,3}
[
0
-
9,a
-
z,A
-
Z
]
{1}?
\)
(?<batch>
[
\d
,a
-
z,A
-
Z
]
{1,70}
)
)
/
gm
Description
Parse the 3 groups of a GS1-128 Barcode
Submitted by
Mike D