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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
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
   Displaying page 1 of 1 pages; Items 1 to 1

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