Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
(?:\d|I{1,3})?\s?\w{2,}\.?\s*\d{1,}\:\d{1,}-?,?\d{0,2}(?:,\d{0,2}){0,2} |
Description |
This RE validates standard Bible verse notation. |
Matches |
Genesis 3:3-4,6 | II Sam 2:11,2 | 2 Tim 3:16 |
Non-Matches |
Genesis chap 3, verse 3 | 2nd Samuel 2 |
Author |
Rating:
Scott Kahler
|
Title |
Test
Details
Bible Verse Search/Validator
|
Expression |
(?:(?:[123]|I{1,3})\s*)?(?:[A-Z][a-zA-Z]+|Song of Songs|Song of Solomon).?\s*(?:1?[0-9]?[0-9]):\s*\d{1,3}(?:[,-]\s*\d{1,3})*(?:;\s*(?:(?:[123]|I{1,3})\s*)?(?:[A-Z][a-zA-Z]+|Song of Songs|Song of Solomon)?.?\s*(?:1?[0-9]?[0-9]):\s*\d{1,3}(?:[,-]\s*\d{1,3})*)* |
Description |
This RE locates and/or validates standard Bible verse notation. |
Matches |
Leviticus 3:3-4 | II Ki. 2:11; 3:12-22, 25 | 2Cor 3:16; Rom. 12:1-5,7,9 |
Non-Matches |
Lev chap 3 vv3-4 | 2nd Kings 2:11 | Romans 12 |
Author |
Rating:
Art Araya
|
Title |
Test
Details
Bible Reference Validator/Finder
|
Expression |
([0-9]* {0,2}[A-Z]{1}\w+[,.;:]? {0,4}[xvilcXVILC\d]+[.,;:]( {0,2}[\d-,]{1,7})+)([,.;:] {0,4}[xvilcXVILC]*[.,;:]( {0,2}[\d-,]{1,7})+)* |
Description |
Will find any bible reference even if it uses roman numerals or has multiple chapter/verse and/or multiple verse components. Does not confirm chapter/verse value ranges. It would find/validate Genesis 5340:9387 |
Matches |
"Deu. xxxiii. 20, 21" "1 Ch. v. 18-22" "Gen. xxx. 11; xlvi. 16" "Genesis 5340:9387" "Gen. xxx. 11,12-13 xlvi. 16" |
Non-Matches |
"Xtec;a7po1T09, 'the pavement.'" "Assyria, about B. c. 740; and" |
Author |
Rating:
Not yet rated.
Stephen Kaiser
|
Title |
Test
Details
Bible verse bbcode tags for multiple versions and languages (eregi not preg_match)
|
Expression |
\[bible[=]?([a-zäëïöüæø]*)\]((([0-9][[:space:]]?)?[a-zäëïöüæø]*[[:space:]]{1}([a-zäëïöüæø]*[[:space:]]?[a-zäëïöüæø]*[[:space:]]{1})?)([0-9]{1,3})(:{1}([0-9]{1,3})(-{1}([0-9]{1,3}))?)?)\[\\/bible\] |
Description |
I used this to find bbcode [bible][/bible] tags. It also allows for multiple versions with a default and other than english languages.
This is eregi, not preg_match |
Matches |
[bible]Mark 11:23[/bible], [bible=asv]john 3:16[/bible] |
Non-Matches |
[bible]Cheeze[/bible], John 3:16 |
Author |
Rating:
Not yet rated.
Mark A. Boughter
|
Title |
Test
Details
Extracting bible verses with Vim
|
Expression |
/(\d?\s?\w+),(\d+),(\d+),(/d*),/\1 \2:\3-\4/g |
Description |
I had a CSV file with following format: book,chapter,verse_start,verse_end,notes
I wanted to transform the rows to traditional english verse representations (i.e. "1 Timothy 2:2-4")
Unfortunately, this regex always puts a '-' after the verse_start, so if verse_end is empty, the translated version will have a trailing '-'.
Vim needs everything escaped, so here is the actual vim command for the substitution:
:%s/\(\d\?\s\?\w\+\),\(\d\+\),\(\d\+\),\(\d*\),/\1 \2:\3-\4/g |
Matches |
1 Timothy,2,2,4,|John,6,3,,|A,123,4,4, |
Non-Matches |
12 Timothy,2,2,4,|2 Timothy 2,2,4|A Corinthians 3,3,,|John,3,,,|John,3,,3, |
Author |
Rating:
Not yet rated.
Tyler Durkota
|
Displaying page
of
pages;
Items to