Hi all,
I'm going crazy! I need to format a formula. I have a string that looks like this "a56c5t78h10K7".
What I need to do is somehow loop through the string and append the html tag <sub></sub> around the integers.
eg final string returned should look like :
Any ideas or code would be grateful.
Regards kloner
I'm going crazy! I need to format a formula. I have a string that looks like this "a56c5t78h10K7".
What I need to do is somehow loop through the string and append the html tag <sub></sub> around the integers.
eg final string returned should look like :
Code:
a<sub>56</sub>c<sub>5</sub>t<sub>78</sub>h<sub>10</sub>K<sub>7</sub>
Any ideas or code would be grateful.
Regards kloner