Regular Expressions 101

Community Patterns

Community Library Entry

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 - a month ago