Greetings all

I am a bit new to regular expressions and am thinking I can dream up a way to loop through a string several times to extract all the values. However im thinking there might be an easier way with a pre existing function? Here is the string in question

username Time: 4h 49m (8:08 PM-9:32 PM)

I would like to extract 3 seperate values from this string:

$value1 = username
$value2 = 4h 49m
$value3 = 8:08 PM-9:32 PM

Thanks for any ideas!

    Write a Reply...