Regular Expressions 101

Library entries

Dept. of Defense ID #

Vote

0

Regular Expression
pcre

/
^\s*(?<Last>[-A-Za-z ]+)[.](?<First>[-A-Za-z ]+)(?:[.](?<Middle>[-A-Za-z ]+))?(?:[.](?<Ordinal>[IVX]+))?(?:[.](?<Number>\d{10}))\s*$
/
gm

Description

Loading markdown...
Submitted by anonymous - 2 years ago