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
NATO Stock Number (with or without NSC)
Open Workspace
PCRE (Legacy)
Match
Created 2015-12-23 09:54
0
Regular Expression
/
^
*
(
\d
{4}
-
?
)?
\d
{2}
-
?
\d
{3}
-
?
\d
{4}
*
$
/
Description
RegEx to validate a NATO Stock Number with or without the NATO Stock Code and with or without dashes
Submitted by
Matthew Perryman