Using PHP preg_replace to replace a value between two strings?

I think you're pretty close but you forgot a few technical things like using delimiters around the regex (the '|' in the example below) and using references ($1 and $2 below). If the code below doesn't work please post an example of the text you're trying to match $result = preg_replace('|mysite.com/script.php\?(^"*)&variable=1(.

I think you're pretty close but you forgot a few technical things like using delimiters around the regex (the '|' in the example below) and using references ($1 and $2 below). If the code below doesn't work please post an example of the text you're trying to match. $result = preg_replace('|mysite.com/script.php\?(^"*)&variable=1(.

This is perfect - worked first time - thank you! – Matt Mar 29 at 14:54.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions