Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Brad Everman
October 13, 2006, 6:34 pm
rate this thread
Say I have an HTML file and want to convert all tags to lowercase, but
leave the attributes alone. For instance:
<SOME TAG ATTRIBUTE="Text THAT may be Upper"></SOME TAG>
Needs to be converted to:
<some tag attribute="Text THAT may be Upper"></some tag>
I can easily convert everything in the tag to lower using '<.*?>' but am
stuck getting PHP to ignore whatever is in quotes. Any ideas?