Code: Select all
$regexpArray = array(
'SearchArray'=>array(
'/<flv:([^>]+)\/?>/U'
),
'ReplaceArray'=>array(
'<object type="application/x-shockwave-flash" width="320" height="240" data="http://yourdomain/flv.swf?file=\\1"><param name="movie" value="http://yourdomain/flv.swf?file=\\1" /></object>'
)
id like to put the whole absolute path in and not have the domain hard coded..
thanks for pointers im not so sure of reg exp.