View Single Post
Old 03-22-2012, 07:29 AM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 54,635
regex could be something like

Code:
$html = '[downloads_box title="big boobs"]http://www.domain.com/files/files.avi.html[/downloads_box]';
$regex = '/\[(\[?)(downloads_box)\b([^\]\/]*(?:\/(?!\])[^\]\/]*)*?)(?:(\/)\]|\](?:([^\[]*+(?:\[(?!\/\2\])[^\[]*+)*+)\[\/\2\])?)(\]?)/s';
$new = preg_replace($regex,' replacement',$html);
echo $html . 'will be replaced with' . $new;
or something
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


my contact: fris at fris.net
fris is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote