preg_match_all regex help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • leegold

    #1

    preg_match_all regex help

    preg_match_all( "/(EXIF_Caption_C ell (Windows XP -.*?) <pre>
    (.*?)<\/pre>.*?/", $meta_str, $out, PREG_PATTERN_OR DER );

    So I get two values per each string ($meta_str) loaded into the array $out.

    What I really want to do capture these as $1 and $2 and concatenate them
    and read that into a variable.

    The code above reads it into an array - and before try to figure out how to
    combine the array elements in the way i need i thought there might be a
    simpler way.

    Thanks


Working...