PHP problems parsing a string
===

I hope you can help me.

I have a string like the following

Luke 1:26-38

And I would like to be able to break it up into tokens or individual variables so that I can use the variables in an SQL query.

I've tried using explode, however I've only been able to make it explode on one character such as : or -

My string has : and - and also a space between the name and the first number.

My goal is to have:

        $name = Luke;
        $book = 1;
        $from = 26;  
        $to = 38;

Is anyone able to help please.

Many thanks




