Regular Expressions 101

Community Patterns

german date era with tolerance: n. Chr. or v. Chr. / n. Ztr of v. Ztr

1

Regular Expression
ECMAScript (JavaScript)

/
[vn]\.?\s*(C(hr?)?\.?|(Z(tr?)?\.?))
/
gmi

Description

Maches german era notations in date "v. Chr" and "v. Ztr"

It is meant to be tolerant : periods and spaces are optional, and it is case insensitive

Submitted by Olivier CHEVET - 20 days ago