RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find 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: The rating for this expression. Scott Kahler
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: Multiple verse references
Name: erick
Date: 12/9/2006 12:05:35 PM
Comment:
I tried this but it's not giving the complete match: Exo 20:1-17,18,20-26 -> Exo 20:1-17,18,20


Title: False positives
Name: Scott Kahler
Date: 2/1/2005 3:06:58 PM
Comment:
The false positives are fine - the expression was designed to filter out existing verses from within a document (say, a pastor's notes) and assume that invalid verses won't exist.


Title: Mr.
Name: Pedram Nimreezi
Date: 5/5/2003 1:12:48 AM
Comment:
1st Proverbs 6:123 and first Proverbs 6:123 are false positives


Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials