View Single Post
Old 04-21-2008, 03:48 AM   #2 (permalink)
delayedinsanity
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default

I'm not sure if this is exactly what you were looking for, but I would do something like this, maybe;

PHP Code:
$szExplode preg_replace("/(first match)(second match)(so on)/""$1|$2|$3"$szString);
$aExplode explode("|"$szExplode); 
And now you have an array full of your matches. If I understood the question right?
-m
delayedinsanity is offline  
Reply With Quote
The Following 2 Users Say Thank You to delayedinsanity For This Useful Post:
Orc (04-21-2008), Rendair (04-21-2008)