Hello,
I am still having problems with understanding reg expressions!
Can someone please help with this problem:
How do I change every occurance in a string of a variable length string.
i.e. $string = " jashaskgaska asdgasdgas skgas XXXXhcdgashg asfhgashjgas asgashgYYYY
sajkyfash asjghaskfjsh XXXX dhsdhd YYYY";
and make it
$string = " jashaskgaska asdgasdgas skgas ZZZZZZ
sajkyfash asjghaskfjsh ZZZZZZ";
in other words change everything between XXXX and YYYY into ZZZZZZ
I think the only way to do this is with either a preg_replace or an ereg_replace.
Cheers