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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find 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
Source http://imaginekitty.com/bible-tags-v2/
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

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