Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

regex help

Status
Not open for further replies.

leegold2

Technical User
Oct 10, 2004
116
preg_match_all( "/(EXIF_Caption_Cell (Windows XP -.*?)<pre>(.*?)<\/pre>.*?/", $meta_str, $out, PREG_PATTERN_ORDER );

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top