Hello all,
I'm literally going mad with regular expression problems. Basically, I just want to do a simple replacement via ereg_replace. But the string I wanna replace is a link with a query in it, and PHP takes e.g. the "?" as a regex-function (naturally). I tried a lot of things, made some advances, but basically I failed in really making this work.
Here's an example string I wanna replace:
$link = index.php?category=Lebenslauf&print=true&javascript=false
I'd love to have a simple solution like:
$newstring = ereg_replace($link, $replace, $originalstring);
I'd be VERY thankful for help here - I'm really going mad with this!
Thanks in advance!