Jump to content

Embarrassed to ask this REGEX question, but...


Jerred121

Recommended Posts

So just when I think i'm getting the hang of REGEX, I realize that I suck still and I can't get this simple extraction to work...  :-[

 

I want to extract the temp and the method separately:

 

Array
(
    [0] => Array
        (
            [0] => temp: 35.20c / 95.36f - axillary
            [1] => temp: 35.20c / 95.36f
            [2] => temp: 35.20c / 95.36f - oral
        )

    [1] => Array
        (
            [0] => 35.20c / 95.36f
            [1] => 35.20c / 95.36f
            [2] => 35.20c / 95.36f
        )

    [2] => Array
        (
            [0] => axillary
            [1] => 
            [2] => oral
        )

 

I'm even embarrassed to post my sorry pattern, but I'm sure you guys can figure it out.  As always, thank you!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.