Can anyone help me how to split /explode verse format to 3 parts?
The condition should be as follows.
the second and 3rd part must be seperated by a colon. so for example in Gen 1:1
it must be seperated as
[0] = Gen
[1] = 1
[2] = 1
it is delimited by a space (or many space to make it user friendly) and by a colon
secondly, in verses with numeric in front is a problem because user can type it as
1 Cor 1:1 and they can also type it as 1Cor 1:1
in either case I want [1] and [2] to be split by a colon and the remaining parts will be trimmed all space and became the [0] value.
is this possible? Because I am thinking of using only one text box for searching of verse and php will validate it accordingly before passing it as query.
Thanks