Thanks for this but it doesnt work well enough
my news page will have content that looks like this:
Code: Select all
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="layout">
<tr>
<td align="left"><h1 class="header">Finally</h1><h4>By Admin, on Sun, 8 Nov 2009 4:03 pm</h4>
<div class="content"><p>Alright!'<img style="float: right;" src="images/uploads/DSC00159.JPG" alt="" width="182" height="243" /></p> <p>Finally after a few days of programming, i've been working on a content management system that allows me to edit any content on this site where ever i am. so now im able to upload images, post or edit my projects and even add new pages to the site easily.</p> <p>So as a treat, i've added a few pictures of my latest project and even a youtube video. <a id="plink" href="projects.php?p=4">check it out!</a></p></div><br />
<h1 class="header">Welcome!</h1><h4>By Admin, on Sat, 24 Oct 2009 5:05 pm</h4>
<div class="content"><p>Welcome, currently this site is still under construction but please feel free to look around.</p> <p>Cheers<br />Roman</p></div><br />
</td></tr>
</table>
when i try that through your regex, it simply doesn't pick up the image
oh and btw i changed
Code: Select all
$1imagescale.php?img=$2?w=$6&h=$4$3$5$7 />
to
Code: Select all
$1imagescale.php?img=$2&w=$6&h=$4$3$5$7 />
because after the iamge was passed, there was '?' instead of '&'
Cheers
Roman
edit: opps left some admin stuff in it