Standard Bible Verse Notation Regular Expression

Category: Strings

A general regular expression to match and validate standard Bible verse notation.

/(?:\d|I{1,3})?\s?\w{2,}\.?\s*\d{1,}\:\d{1,}-?,?\d{0,2}(?:,\d{0,2}){0,2}/

Matches:

  • Genesis 5:3-5,8
  • Psalm 36:1
  • Gn 1:1-2

Non-matches:

  • Genesis chap 5, verse 3
  • Psalm 36 12
Rate This Regex
Sending
User Review
0 (0 votes)

Expression Flags

Flags Description
i Ignore case sensitive.
g Allows global search.
m Allows multiline search.