My immediate problem is that I want to change a string in PHP. I want to change "somepattern" to "somepattern and some other stuff too".
I need the sed-type capability of putting "somepattern" back into the string. (sed uses the ( ) plus \1 \2 construct for this.)
Does PHP have this capability? I'm trying to use ereg_replace().