Search for regular expression and modify text in php?

kpa4941

New member
What regular expression could find quotes and double quotes and surround them with font color tags?

Basically this would be the input string to my program:

<div align="center">
<h1>text</h1>
</div>

The output would be:
<div align="<font color='red'>center</font>">
<h1>text</h1>
</div>

Thank you.
 
Back
Top