Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
(?<book>(?:\d\.?\s*)?[\w\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]+)\s+(?<chapter>\d+)[,|:]{1}[\s]?(?<verses>(?:\d+[a-z]?[\.|-]?)+)
/
usg

Description

A regex that captures the common Bible books, chapter, and verses for the German language.

Submitted by Sergio Santos - 3 years ago (Last modified 3 years ago)