how to convert to small caps
Posted: Wed Dec 13, 2006 2:11 pm
hi friends
i want to know that how can i replace the entire content in <..............> tags.
for example
i have a code
<STRONG><I><B><FONT COLOR="red">Example Text</FONT></B></I></STRONG>
and i want to convert the html tags to small caps without converting the text i.e Example Text.
<STRONG> should be <strong>
<I> should be
<FONT COLOR="red"> should be <font color="red">
but keeping the text i.e Example Text intact.
due to which i can't use strtolower.
please tell me how to convert the html tags into smallcaps.
what regular expression to use so that i get
<strong><font color="red"><b>Example Text</b></font></strong>
in simple words i want html tags to be converted to small caps, remaining the text intact.
please help
i want to know that how can i replace the entire content in <..............> tags.
for example
i have a code
<STRONG><I><B><FONT COLOR="red">Example Text</FONT></B></I></STRONG>
and i want to convert the html tags to small caps without converting the text i.e Example Text.
<STRONG> should be <strong>
<I> should be
<FONT COLOR="red"> should be <font color="red">
but keeping the text i.e Example Text intact.
due to which i can't use strtolower.
please tell me how to convert the html tags into smallcaps.
what regular expression to use so that i get
<strong><font color="red"><b>Example Text</b></font></strong>
in simple words i want html tags to be converted to small caps, remaining the text intact.
please help