I am looking for a special pattern "Bible Verse Regex"

([\d ]*[a-zA-Z]+( \d*:\d*)?)(( - )| )?(((\d* )?[a-zA-Z]+ )?\d*([:-]+\d*)?)

// zero of more digit(s) or a space
[\d ]*

// any number of upper/lowercase letters
[a-zA-Z]+

// a space followed by an optional any number of digits, a colon,
// and any number of digits again
( \d*:\d*)?)

// an optional hyphen with a space either side, or a space.
(( - )| )

Unfortunately, there are matching issues:
Example:
Filip. 4:13
Filipian 4:13
Jana 5:28, 29
(Rzym. 8:35-37)
Ps. 120:1; 121:1-8
(Kapł. 17:11-14; Dzieje 15:20, 29)
(1 Piotra 5:9)

-- 
<https://forum.pspad.com/read.php?2,75204,75204>
PSPad freeware editor https://www.pspad.com

Odpovedet emailem