regex pb !
Posted: Tue Jun 04, 2002 9:47 am
Hi !
I have a problem using regex expressions. I try to manage themes from my php code and gfx links are giving a headache !
here's a sample of what i try to do :
<[whatever] src="[whatever]" [whatever]> replaced by
<^^^^^^^ src="[new dir][same as above]" ^^^^^^^^>
and here's my code :
it doesn't work !
Could You help me please !
I 'm getting mad
aegypius
I have a problem using regex expressions. I try to manage themes from my php code and gfx links are giving a headache !
here's a sample of what i try to do :
<[whatever] src="[whatever]" [whatever]> replaced by
<^^^^^^^ src="[new dir][same as above]" ^^^^^^^^>
and here's my code :
Code: Select all
$outfile = eregi_replace("<ї:ascii:]*їsrc="]ї:ascii:]*ї"]ї:ascii:]*>","<img src="".TEMPLATE_PATH."$this->theme/", $outfile);Could You help me please !
I 'm getting mad
aegypius