Have been tearing my hair out about this one (and I don't have a lot of hair!):
how do I preg_replace postCode="xxx" with postCode="yyy"?
I have tried
preg_replace('postCode=".*"','postCode="yyy"',$input)
and many variations but I just can't seem to get it to work. Any help appreciated.
NB, that postCode is within other text, so:
blah="moo" foo="bar" postCode="yyy" ...
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.