Hey everyone!
This should be easy for you regular expression gurus out there....I have a single php variable which contains html code and text in it. I need to write a regular expression to look into this variable and change all the single quotes to double quotes in the html code, but I want it to leave the text code alone. For example,
if:
$variable1 = "<IMG src='someURL'>He's Cool";
then it the value of variable1 would be turned into
<IMG src="someURL">He's Cool
It would be a huge help if someone could point me in the right direction. I am somewhat new to regular expressions. Thanks in advance!