Welcome to the Geeks & God Static Archive. Read more »

Parse Verse

Joined: 11/28/2008

I have a Bible database that looks up a given Bible verse...well...in theory anyways. The pages are written in PHP and I was hoping there was someone out there who already had a function top parse a given Bible verse ready to go...(?)

If its in another language thats fine too...I know a bunch of 'em...

It has to be able to take user input like "1 Peter 5:6-8" and parse out the Book, Chapter, and Verse(s)...

/unsure.gif" style="vertical-align:middle" emoid=":unsure:" border="0" alt="unsure.gif" />

bob
bob's picture
Joined: 11/28/2008
Have you seen the

Have you seen the Scripturizer in PHP? It hardcodes just about everything, but it appears to be robust enough to handle different formats.

For example, you can use "1st Peter 5:6-8" or "I Pet 5:6-8" and it should parse it correctly.