Howdy,
It’s like this ….
I have some html code in a $_SESSION.
One of the tags are:
““
</form>
Got to replace that code with:
““
</fieldset><fieldset>
How to do it with regex and preg_replace() as str_replace() not working ?
See here:
““
str_replace(‘</form>’,'</fieldset><fieldset>’,$_SESSION[‘html_form_builder’]);
Got to use preg_replace() instead. Correct ?
Big question is:
Will not str_replace() work if I try replacing symbols other than alpha-numerical chars ?
And, don’t close this thread saying other threads exist teaching how to replace html code with preg_replace() because those threads’ regex codes are no use to me as I am weak on regex. I actually need that specific regex to replace what you see above.